From db5d62ae58e46a38cd86a3de6a2f88fef12fc137 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 30 Jun 2023 16:29:21 +0600 Subject: [PATCH] 6.2.2: fixes related to twitter screwing everything up (also fixes an issue with some instagram links) --- README.md | 5 ++- package.json | 2 +- src/localization/languages/en.json | 3 +- src/localization/languages/ru.json | 3 +- src/modules/pageRender/page.js | 1 - src/modules/processing/match.js | 2 +- src/modules/processing/services/twitter.js | 18 --------- .../processing/services/twitter_lite.js | 39 +++++++++++++++++++ src/modules/processing/servicesConfig.json | 2 +- src/modules/sub/utils.js | 2 +- 10 files changed, 50 insertions(+), 27 deletions(-) create mode 100644 src/modules/processing/services/twitter_lite.js diff --git a/README.md b/README.md index 981b9acd..e077d345 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ Paste the link, get the video, move on. It's that simple. Just how it should be. | SoundCloud | ➖ | ✅ | ➖ | Audio metadata, downloads from private links. | | TikTok | ✅ | ✅ | ✅ | Supports downloads of: videos with or without watermark, images from slideshow without watermark, full (original) audios. | | Tumblr | ✅ | ✅ | ✅ | Support for audio file downloads. | -| Twitter | ✅ | ✅ | ✅ | Ability to pick what to save from multi-media tweets. | -| Twitter Spaces | ➖ | ✅ | ➖ | Audio metadata with all participants and other info. | +| Twitter* | ✅ | ✅ | ✅ | Ability to pick what to save from multi-media tweets. | | Vimeo | ✅ | ✅ | ✅ | Audio downloads are only available for dash files. | | Vine Archive | ✅ | ✅ | ✅ | | | VK Videos | ✅ | ❌ | ❌ | | @@ -33,6 +32,8 @@ Paste the link, get the video, move on. It's that simple. Just how it should be. | YouTube Music | ➖ | ✅ | ➖ | Audio metadata. | This list is not final and keeps expanding over time, make sure to check it once in a while! + +* Reliability of downloads from Twitter is questionable due its to current management. ## cobalt API cobalt has an open API that you can use in your projects for **free**. diff --git a/package.json b/package.json index c84753af..12851718 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cobalt", "description": "save what you love", - "version": "6.2", + "version": "6.2.2", "author": "wukko", "exports": "./src/cobalt.js", "type": "module", diff --git a/src/localization/languages/en.json b/src/localization/languages/en.json index d39ddfbb..0945542d 100644 --- a/src/localization/languages/en.json +++ b/src/localization/languages/en.json @@ -120,6 +120,7 @@ "SettingsVimeoPreferDescription": "progressive: direct file link to vimeo's cdn. max quality is 1080p.\ndash: video and audio are merged by {appName} into one file. max quality is 4k.\n\npick \"progressive\" if you want best editor/player/social media compatibility. if progressive download isn't available, dash is used instead.", "ShareURL": "share", "ErrorTweetUnavailable": "couldn't find anything about this tweet. this could be because its visibility is limited. try another one!", - "UrgentUpdate6": "all network issues have been fixed!" + "UrgentUpdate6": "all network issues have been fixed!", + "ErrorTwitterRIP": "twitter has restricted access to any content to unauthenticated users. while there's a way to get regular tweets, spaces are, unfortunately, impossible to get at this time. i am looking into possible solutions." } } diff --git a/src/localization/languages/ru.json b/src/localization/languages/ru.json index bfc4b5bd..5948535d 100644 --- a/src/localization/languages/ru.json +++ b/src/localization/languages/ru.json @@ -120,6 +120,7 @@ "SettingsVimeoPreferDescription": "progressive: прямая ссылка на файл с сервера vimeo. максимальное качество: 1080p.\ndash: {appName} совмещает видео и аудио в один файл. максимальное качество: 4k.\n\nвыбирай \"progressive\", если тебе нужна наилучшая совместимость с плеерами/редакторами/соцсетями. если \"progressive\" файл недоступен, {appName} скачает \"dash\".", "ShareURL": "поделиться", "ErrorTweetUnavailable": "не смог найти что-либо об этом твите. возможно его видимость была ограничена. попробуй другой!", - "UrgentUpdate6": "на этот раз точно: всё работает!" + "UrgentUpdate6": "на этот раз точно: всё работает!", + "ErrorTwitterRIP": "твиттер ограничил доступ к любому контенту на сайте для пользователей без аккаунтов. я нашёл лазейку, чтобы доставать обычные твиты, но для spaces, к сожалению, нет. я ищу возможные варианты выхода из ситуации." } } diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js index 48190c80..52082cef 100644 --- a/src/modules/pageRender/page.js +++ b/src/modules/pageRender/page.js @@ -364,7 +364,6 @@ export default function(obj) { body: `
` })} -