[cammodels] Use geo verification headers
authorSergey M․ <dstftw@gmail.com>
Sat, 26 May 2018 15:22:28 +0000 (22:22 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 26 May 2018 15:22:58 +0000 (22:22 +0700)
youtube_dl/extractor/cammodels.py

index 17f7ac0430a7d4b7c4becfa649b15c2ddcbdc39b..ee0165dbaa20c3b3d4ecca53fbb748cb3f823bf8 100644 (file)
@@ -19,7 +19,8 @@ class CamModelsIE(InfoExtractor):
     def _real_extract(self, url):
         user_id = self._match_id(url)
 
-        webpage = self._download_webpage(url, user_id)
+        webpage = self._download_webpage(
+            url, user_id, headers=self.geo_verification_headers())
 
         manifest_root = self._html_search_regex(
             r'manifestUrlRoot=([^&\']+)', webpage, 'manifest', default=None)