Browse Source

[6play] use geo verfication headers

Remita Amine 7 years ago
parent
commit
e12b4b8bcc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      youtube_dl/extractor/sixplay.py

+ 3 - 1
youtube_dl/extractor/sixplay.py

@@ -71,7 +71,9 @@ class SixPlayIE(InfoExtractor):
             if container == 'm3u8' or ext == 'm3u8':
             if container == 'm3u8' or ext == 'm3u8':
                 if protocol == 'usp':
                 if protocol == 'usp':
                     if compat_parse_qs(compat_urllib_parse_urlparse(asset_url).query).get('token', [None])[0]:
                     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:
                         if not urlh:
                             continue
                             continue
                         asset_url = urlh.geturl()
                         asset_url = urlh.geturl()