0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[6play] use geo verfication headers

This commit is contained in:
Remita Amine 2018-06-19 10:35:42 +01:00
parent 18806e3b6b
commit e12b4b8bcc

View file

@ -71,7 +71,9 @@ def _real_extract(self, url):
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()