projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[downloader/http] Retry download when urlopen times out (#26603) (refs #10935)
[youtube-dl]
/
youtube_dl
/
extractor
/
giantbomb.py
diff --git
a/youtube_dl/extractor/giantbomb.py
b/youtube_dl/extractor/giantbomb.py
index 6a1b1e96ebf4dc59f7f5e13dc18e3ee08ef1110c..c6477958d2766704ade1ba25bc2ed68676655889 100644
(file)
--- a/
youtube_dl/extractor/giantbomb.py
+++ b/
youtube_dl/extractor/giantbomb.py
@@
-13,10
+13,10
@@
from ..utils import (
class GiantBombIE(InfoExtractor):
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+)'
+ _TEST
S = [
{
'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': '
132f5a803e7e0ab0e274d84bda1e77ae
',
'info_dict': {
'id': '2300-9782',
'display_id': 'quick-look-destiny-the-dark-below',
'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$',
}
'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)
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)