]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[gameinformer] Use geo verification headers
authorSergey M․ <dstftw@gmail.com>
Wed, 7 Feb 2018 14:52:15 +0000 (21:52 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 7 Feb 2018 14:52:15 +0000 (21:52 +0700)
youtube_dl/extractor/gameinformer.py

index 239c1961d59865fdb44cafaeae049a9420921570..b286b5ed3430f2e3fe1bfe0ef96473bbcef43ef0 100644 (file)
@@ -23,7 +23,8 @@ class GameInformerIE(InfoExtractor):
 
     def _real_extract(self, url):
         display_id = self._match_id(url)
-        webpage = self._download_webpage(url, display_id)
+        webpage = self._download_webpage(
+            url, display_id, headers=self.geo_verification_headers())
         brightcove_id = self._search_regex(
             [r'<[^>]+\bid=["\']bc_(\d+)', r"getVideo\('[^']+video_id=(\d+)"],
             webpage, 'brightcove id')