diff options
author | Remita Amine <remitamine@gmail.com> | 2018-06-19 10:35:42 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2018-06-19 10:35:57 +0100 |
commit | e12b4b8bccd364cb5cc68aab4888209965a82dc1 (patch) | |
tree | ae3ec829b95a309876d034d616135ec7ce7c0856 /youtube_dl/extractor/sixplay.py | |
parent | 18806e3b6b95d03c773c89e465e1b28b2f12a618 (diff) |
[6play] use geo verfication headers
Diffstat (limited to 'youtube_dl/extractor/sixplay.py')
-rw-r--r-- | youtube_dl/extractor/sixplay.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/sixplay.py b/youtube_dl/extractor/sixplay.py index 1f8469a90..a363221bc 100644 --- a/youtube_dl/extractor/sixplay.py +++ b/youtube_dl/extractor/sixplay.py @@ -71,7 +71,9 @@ class SixPlayIE(InfoExtractor): if container == 'm3u8' or ext == 'm3u8': if protocol == 'usp': if compat_parse_qs(compat_urllib_parse_urlparse(asset_url).query).get('token', [None])[0]: - urlh = self._request_webpage(asset_url, video_id, fatal=False) + urlh = self._request_webpage( + asset_url, video_id, fatal=False, + headers=self.geo_verification_headers()) if not urlh: continue asset_url = urlh.geturl() |