diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-10-11 12:41:30 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-10-11 12:41:44 +0800 |
commit | 27b8d2ee9535e19cdaed69de7a08ba0e026700e0 (patch) | |
tree | b2d879d5a3eb3e5191ca6c843f1d5939a83e38fa /youtube_dl/extractor/hbo.py | |
parent | 71cdcb23316b55baf9330741ede4c77d08e4d77f (diff) |
[hbo] Add display_id and another test (#10892)
Diffstat (limited to 'youtube_dl/extractor/hbo.py')
-rw-r--r-- | youtube_dl/extractor/hbo.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/youtube_dl/extractor/hbo.py b/youtube_dl/extractor/hbo.py index 3606d64fd..cbf774377 100644 --- a/youtube_dl/extractor/hbo.py +++ b/youtube_dl/extractor/hbo.py @@ -138,11 +138,15 @@ class HBOEpisodeIE(HBOBaseIE): 'md5': '689132b253cc0ab7434237fc3a293210', 'info_dict': { 'id': '1439518', + 'display_id': 'ep-52-inside-the-episode', 'ext': 'mp4', 'title': 'Ep. 52: Inside the Episode', 'thumbnail': 're:https?://.*\.jpg$', 'duration': 240, }, + }, { + 'url': 'http://www.hbo.com/game-of-thrones/about/video/season-5-invitation-to-the-set.html?autoplay=true', + 'only_matching': True, }] def _real_extract(self, url): @@ -154,4 +158,7 @@ class HBOEpisodeIE(HBOBaseIE): r'(?P<q1>[\'"])videoId(?P=q1)\s*:\s*(?P<q2>[\'"])(?P<video_id>\d+)(?P=q2)', webpage, 'video ID', group='video_id') - return self._extract_from_id(video_id) + info_dict = self._extract_from_id(video_id) + info_dict['display_id'] = display_id + + return info_dict |