Skip to content

Commit

Permalink
[giantbomb] Extend _VALID_URL (#25222)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanWeatherby authored May 20, 2020
1 parent a54c5f8 commit 8f841fa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions youtube_dl/extractor/giantbomb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@


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',
Expand All @@ -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)
Expand Down

0 comments on commit 8f841fa

Please sign in to comment.