From 2c4bba455ea4e7b527ec9e2f71d768e81ea2788b Mon Sep 17 00:00:00 2001 From: Aditya Kumar Mishra Date: Fri, 31 Jul 2026 23:14:09 +0530 Subject: [PATCH] extractor: twitter: add explicit x.com test cases --- youtube_dl/extractor/twitter.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index f33f49fd3..e2514bd70 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -178,6 +178,12 @@ class TwitterCardIE(InfoExtractor): }, { 'url': 'https://twitter.com/i/videos/752274308186120192', 'only_matching': True, + }, { + 'url': 'https://x.com/i/videos/752274308186120192', + 'only_matching': True, + }, { + 'url': 'https://mobile.x.com/i/videos/752274308186120192', + 'only_matching': True, }, ] @@ -427,6 +433,12 @@ class TwitterIE(TwitterBaseIE): # poll4choice_video card 'url': 'https://twitter.com/SouthamptonFC/status/1347577658079641604', 'only_matching': True, + }, { + 'url': 'https://x.com/SouthamptonFC/status/1347577658079641604', + 'only_matching': True, + }, { + 'url': 'https://mobile.x.com/SouthamptonFC/status/1347577658079641604', + 'only_matching': True, }] def _real_extract(self, url):