diff options
author | Remita Amine <remitamine@gmail.com> | 2017-02-21 19:36:39 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2017-02-21 19:36:39 +0100 |
commit | 31615ac279ac60fbd3925995de2eed69a4b3976a (patch) | |
tree | 36f5b94116ab68f30ce488b774b2a5f88c900381 /youtube_dl/extractor/viewster.py | |
parent | fc320a40d97ed0c439a8d2ace9cfad94a74ff635 (diff) |
[viewster] use geo verifcation headers
Diffstat (limited to 'youtube_dl/extractor/viewster.py')
-rw-r--r-- | youtube_dl/extractor/viewster.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/viewster.py b/youtube_dl/extractor/viewster.py index 52dd95e2f..fcf0cb100 100644 --- a/youtube_dl/extractor/viewster.py +++ b/youtube_dl/extractor/viewster.py @@ -86,7 +86,9 @@ class ViewsterIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) # Get 'api_token' cookie - self._request_webpage(HEADRequest('http://www.viewster.com/'), video_id) + self._request_webpage( + HEADRequest('http://www.viewster.com/'), + video_id, headers=self.geo_verification_headers()) cookies = self._get_cookies('http://www.viewster.com/') self._AUTH_TOKEN = compat_urllib_parse_unquote(cookies['api_token'].value) |