1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

Enables HD quality when CookieFile is provided

This changes will allow download of streams in HD quality which is normally available only to signed users. 
A cookie file needs to be provided with `--cookies` flag.
This commit is contained in:
Václav Navrátil 2019-01-30 18:15:39 +01:00 committed by GitHub
parent 15e832ff2a
commit f0bb6ee3f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,11 +74,12 @@ class IPrimaIE(InfoExtractor):
webpage, 'real id') webpage, 'real id')
playerpage = self._download_webpage( playerpage = self._download_webpage(
'http://play.iprima.cz/prehravac/init', 'https://api.play-backend.iprima.cz/prehravac/init-embed',
video_id, note='Downloading player', query={ video_id, note='Downloading player', query={
'_infuse': 1, '_infuse': 1,
'_ts': round(time.time()), '_ts': round(time.time()),
'productId': video_id, 'productId': video_id,
'embed': True,
}, headers={'Referer': url}) }, headers={'Referer': url})
formats = [] formats = []