diff options
author | JordanWeatherby <[email protected]> | 2020-05-20 22:30:50 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-21 04:30:50 +0700 |
commit | 8f841fafcd1d34112b14300cf76c78c270deacea (patch) | |
tree | b87be694db1c80a162ae236e4f9f4f2a15eaeafe /youtube_dl/extractor/giantbomb.py | |
parent | a54c5f83c01cb243a38c0dbc5981f97bd9224c46 (diff) | |
download | youtube-dl-8f841fafcd1d34112b14300cf76c78c270deacea.tar.gz youtube-dl-8f841fafcd1d34112b14300cf76c78c270deacea.zip |
[giantbomb] Extend _VALID_URL (#25222)
Diffstat (limited to 'youtube_dl/extractor/giantbomb.py')
-rw-r--r-- | youtube_dl/extractor/giantbomb.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/youtube_dl/extractor/giantbomb.py b/youtube_dl/extractor/giantbomb.py index 6a1b1e96e..c6477958d 100644 --- a/youtube_dl/extractor/giantbomb.py +++ b/youtube_dl/extractor/giantbomb.py @@ -13,10 +13,10 @@ from ..utils import ( class GiantBombIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?giantbomb\.com/videos/(?P<display_id>[^/]+)/(?P<id>\d+-\d+)' - _TEST = { + _VALID_URL = r'https?://(?:www\.)?giantbomb\.com/(?:videos|shows)/(?P<display_id>[^/]+)/(?P<id>\d+-\d+)' + _TESTS = [{ 'url': 'http://www.giantbomb.com/videos/quick-look-destiny-the-dark-below/2300-9782/', - 'md5': 'c8ea694254a59246a42831155dec57ac', + 'md5': '132f5a803e7e0ab0e274d84bda1e77ae', 'info_dict': { 'id': '2300-9782', 'display_id': 'quick-look-destiny-the-dark-below', @@ -26,7 +26,10 @@ class GiantBombIE(InfoExtractor): 'duration': 2399, 'thumbnail': r're:^https?://.*\.jpg$', } - } + }, { + 'url': 'https://www.giantbomb.com/shows/ben-stranding/2970-20212', + 'only_matching': True, + }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) |