diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-06-01 20:32:57 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-06-01 20:32:57 +0700 |
commit | 7b0b53ea69ad32d0bf6987633e56f68da3913caa (patch) | |
tree | d09969d633e0bba294573671d3f93c2d8773e318 | |
parent | 7016e24ebea09c717f413273cda16721c4098325 (diff) |
[twitter:broadcast] Add untitled periscope broadcast test
-rw-r--r-- | youtube_dl/extractor/twitter.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index 01468981c..4284487db 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -578,6 +578,18 @@ class TwitterBroadcastIE(TwitterBaseIE, PeriscopeBaseIE): IE_NAME = 'twitter:broadcast' _VALID_URL = TwitterBaseIE._BASE_REGEX + r'i/broadcasts/(?P<id>[0-9a-zA-Z]{13})' + _TEST = { + # untitled Periscope video + 'url': 'https://twitter.com/i/broadcasts/1yNGaQLWpejGj', + 'info_dict': { + 'id': '1yNGaQLWpejGj', + 'ext': 'mp4', + 'title': 'Andrea May Sahouri - Periscope Broadcast', + 'uploader': 'Andrea May Sahouri', + 'uploader_id': '1PXEdBZWpGwKe', + }, + } + def _real_extract(self, url): broadcast_id = self._match_id(url) broadcast = self._call_api( |