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
1 changed files with 2 additions and 1 deletions

View File

@ -74,11 +74,12 @@ class IPrimaIE(InfoExtractor):
webpage, 'real id')
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={
'_infuse': 1,
'_ts': round(time.time()),
'productId': video_id,
'embed': True,
}, headers={'Referer': url})
formats = []