mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.82k stars 969 forks source link

[Twitter] Downloading videos fails #5629

Closed MarqFJA87 closed 5 months ago

MarqFJA87 commented 5 months ago

Every time I try to download a video tweet, I get an "unsupported URL" error. Here's an example verbose log.

D:\Programs\Bulk downloaders\gallery-dl>gallery-dl https://x.com/HonoluluSize/status/1793383069975560237 --verbose
[gallery-dl][debug] Version 1.27.0-dev
[gallery-dl][debug] Python 3.10.0 - Windows-10-10.0.19045-SP0
[gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0
[gallery-dl][debug] Configuration Files ['%USERPROFILE%\\gallery-dl\\config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://x.com/HonoluluSize/status/1793383069975560237'
[twitter][debug] Using TwitterTweetExtractor for 'https://x.com/HonoluluSize/status/1793383069975560237'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): x.com:443
[urllib3.connectionpool][debug] https://x.com:443 "GET /i/api/graphql/B9_KmbkLhXt6jRwGjJrweg/TweetDetail?variables=%7B%22focalTweetId%22%3A%221793383069975560237%22%2C%22referrer%22%3A%22profile%22%2C%22with_rux_injections%22%3Afalse%2C%22includePromotedContent%22%3Afalse%2C%22withCommunity%22%3Atrue%2C%22withQuickPromoteEligibilityTweetFields%22%3Atrue%2C%22withBirdwatchNotes%22%3Atrue%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22responsive_web_graphql_exclude_directive_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Afalse%2C%22creator_subscriptions_tweet_preview_api_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22responsive_web_graphql_skip_user_profile_image_extensions_enabled%22%3Afalse%2C%22c9s_tweet_anatomy_moderator_badge_enabled%22%3Atrue%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Atrue%2C%22responsive_web_twitter_article_tweet_consumption_enabled%22%3Atrue%2C%22tweet_awards_web_tipping_enabled%22%3Afalse%2C%22freedom_of_speech_not_reach_fetch_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Atrue%2C%22rweb_video_timestamps_enabled%22%3Atrue%2C%22longform_notetweets_rich_text_read_enabled%22%3Atrue%2C%22longform_notetweets_inline_media_enabled%22%3Atrue%2C%22responsive_web_media_download_video_enabled%22%3Atrue%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D HTTP/1.1" 200 5652
[twitter][debug] Active postprocessor modules: [MetadataPP]
[downloader.ytdl][debug] [generic] Extracting URL: https://x.com/i/web/status/1793383069975560237
[downloader.ytdl][debug] [generic] 1793383069975560237: Downloading webpage
[downloader.ytdl][warning] [generic] Falling back on generic information extractor
[downloader.ytdl][debug] [generic] 1793383069975560237: Extracting information
[downloader.ytdl][error] ERROR: Unsupported URL: https://x.com/i/web/status/1793383069975560237
[download][error] Failed to download ytdl:https://x.com/i/web/status/1793383069975560237
mikf commented 5 months ago

[downloader.ytdl][error] ERROR: Unsupported URL: https://x.com/i/web/status/1793383069975560237

It's yt-dlp that's complaining about an unsupported URL, which got fixed there in https://github.com/yt-dlp/yt-dlp/commit/4813173e4544f125d6f2afc31e600727d761b8dd. Update yt-dlp or disable downloading Twitter videos with it.