diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index 41d0b6be8c8..2681b8ff470 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -428,6 +428,9 @@ class TwitterIE(InfoExtractor): 'params': { 'skip_download': True, # requires ffmpeg }, + }, { + 'url': 'https://twitter.com/-/status/1087791357756956680', + 'only_matching': True, }] def _real_extract(self, url): @@ -441,7 +444,7 @@ def _real_extract(self, url): if 'twitter.com/account/suspended' in urlh.geturl(): raise ExtractorError('Account suspended by Twitter.', expected=True) - if user_id is None: + if user_id is None or user_id == '-': mobj = re.match(self._VALID_URL, urlh.geturl()) user_id = mobj.group('user_id')