mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
Fixed giantbomb extraction for videos within shows
This commit is contained in:
parent
b002bc433a
commit
1345ed928c
@ -13,8 +13,8 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class GiantBombIE(InfoExtractor):
|
class GiantBombIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?giantbomb\.com/videos/(?P<display_id>[^/]+)/(?P<id>\d+-\d+)'
|
_VALID_URL = r'https?://(?:www\.)?giantbomb\.com/(videos|shows)/(?P<display_id>[^/]+)/(?P<id>\d+-\d+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://www.giantbomb.com/videos/quick-look-destiny-the-dark-below/2300-9782/',
|
'url': 'http://www.giantbomb.com/videos/quick-look-destiny-the-dark-below/2300-9782/',
|
||||||
'md5': 'c8ea694254a59246a42831155dec57ac',
|
'md5': 'c8ea694254a59246a42831155dec57ac',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -26,7 +26,19 @@ class GiantBombIE(InfoExtractor):
|
|||||||
'duration': 2399,
|
'duration': 2399,
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'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):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user