]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[viu] pass geo verification headers to auth request
authorRemita Amine <remitamine@gmail.com>
Wed, 21 Dec 2016 19:50:10 +0000 (20:50 +0100)
committerRemita Amine <remitamine@gmail.com>
Wed, 21 Dec 2016 19:50:10 +0000 (20:50 +0100)
youtube_dl/extractor/viu.py

index d4861a2fea7ee095d23770cb511e72ad90344e17..3fd889c8e95cca15b16cf9d022ac61813433d7c4 100644 (file)
@@ -25,7 +25,7 @@ class ViuBaseIE(InfoExtractor):
                 'userid': 'guest',
                 'useridtype': 'guest',
                 'ver': '1.0'
-            })
+            }, headers=self.geo_verification_headers())
         self._auth_token = viu_auth_res.info()['X-VIU-AUTH']
 
     def _call_api(self, path, *args, **kwargs):