diff --git a/youtube_dl/extractor/giantbomb.py b/youtube_dl/extractor/giantbomb.py index 6a1b1e96e..3d2f927ef 100644 --- a/youtube_dl/extractor/giantbomb.py +++ b/youtube_dl/extractor/giantbomb.py @@ -13,8 +13,8 @@ from ..utils import ( class GiantBombIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?giantbomb\.com/videos/(?P[^/]+)/(?P\d+-\d+)' - _TEST = { + _VALID_URL = r'https?://(?:www\.)?giantbomb\.com/(videos|shows)/(?P[^/]+)/(?P\d+-\d+)' + _TESTS = [{ 'url': 'http://www.giantbomb.com/videos/quick-look-destiny-the-dark-below/2300-9782/', 'md5': 'c8ea694254a59246a42831155dec57ac', 'info_dict': { @@ -26,7 +26,19 @@ class GiantBombIE(InfoExtractor): 'duration': 2399, 'thumbnail': r're:^https?://.*\.jpg$', } - } + }, { + 'url': 'https://www.giantbomb.com/shows/ben-stranding/2970-20212', + 'md5': '92d94e1d072d559df7e95129315a9870', + 'info_dict': { + 'id': '2970-20212', + 'display_id': 'ben-stranding', + 'ext': 'mp4', + 'title': 'Lockdown 2020: Ben Stranding', + 'description': 'md5:dfe795e0718a65baee2183c107b87478', + 'duration': 5100, + 'thumbnail': r're:^https?://.*\.png$', + } + }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url)