1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-27 08:41:35 +08: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
Unverified
parent 15e832ff2a
commit f0bb6ee3f7
+2 -1
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 = []