From f0bb6ee3f72a37d2046e7413d5c05df2aee2715e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Navr=C3=A1til?= Date: Wed, 30 Jan 2019 18:15:39 +0100 Subject: [PATCH] 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. --- youtube_dl/extractor/iprima.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py index 11bbeb592..3f71f9954 100644 --- a/youtube_dl/extractor/iprima.py +++ b/youtube_dl/extractor/iprima.py @@ -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 = []