X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fgamespot.py;h=4236a5ed8a9bd638c31cfe33f040c555268c937f;hb=8f841fafcd1d34112b14300cf76c78c270deacea;hp=e6d6d9b1d41fed5c51705be554f2812aeb3638bf;hpb=79d1f8ed6803b6097f0f3cd57f72e0378bdc1f34;p=youtube-dl diff --git a/youtube_dl/extractor/gamespot.py b/youtube_dl/extractor/gamespot.py index e6d6d9b1d..4236a5ed8 100644 --- a/youtube_dl/extractor/gamespot.py +++ b/youtube_dl/extractor/gamespot.py @@ -14,7 +14,7 @@ from ..utils import ( class GameSpotIE(OnceIE): - _VALID_URL = r'https?://(?:www\.)?gamespot\.com/(?:video|article)s/(?:[^/]+/\d+-|embed/)(?P\d+)' + _VALID_URL = r'https?://(?:www\.)?gamespot\.com/(?:video|article|review)s/(?:[^/]+/\d+-|embed/)(?P\d+)' _TESTS = [{ 'url': 'http://www.gamespot.com/videos/arma-3-community-guide-sitrep-i/2300-6410818/', 'md5': 'b2a30deaa8654fcccd43713a6b6a4825', @@ -38,6 +38,12 @@ class GameSpotIE(OnceIE): }, { 'url': 'https://www.gamespot.com/videos/embed/6439218/', 'only_matching': True, + }, { + 'url': 'https://www.gamespot.com/articles/the-last-of-us-2-receives-new-ps4-trailer/1100-6454469/', + 'only_matching': True, + }, { + 'url': 'https://www.gamespot.com/reviews/gears-of-war-review/1900-6161188/', + 'only_matching': True, }] def _real_extract(self, url): @@ -109,7 +115,7 @@ class GameSpotIE(OnceIE): if onceux_url: formats.extend(self._extract_once_formats(re.sub( r'https?://[^/]+', 'http://once.unicornmedia.com', onceux_url), - skip_http_formats=True)) + http_formats_preference=-1)) if not formats: for quality in ['sd', 'hd']: