aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-02-20 23:16:14 +0700
committerSergey M․ <dstftw@gmail.com>2017-02-20 23:16:14 +0700
commit82f662182b9ade630b37af81ebf8ae7ae6468898 (patch)
tree1d2440ad62e6f17c28d78a9885c4e08a3527fafd /youtube_dl
parent2cc7fcd338e8690a5c211b95fb9e0dcdc5d98ef5 (diff)
[iprima] Modernize
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/iprima.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py
index 0fe576883..7afa2def0 100644
--- a/youtube_dl/extractor/iprima.py
+++ b/youtube_dl/extractor/iprima.py
@@ -8,7 +8,6 @@ from .common import InfoExtractor
from ..utils import (
determine_ext,
js_to_json,
- sanitized_Request,
)
@@ -38,11 +37,13 @@ class IPrimaIE(InfoExtractor):
video_id = self._search_regex(r'data-product="([^"]+)">', webpage, 'real id')
- req = sanitized_Request(
- 'http://play.iprima.cz/prehravac/init?_infuse=1'
- '&_ts=%s&productId=%s' % (round(time.time()), video_id))
- req.add_header('Referer', url)
- playerpage = self._download_webpage(req, video_id, note='Downloading player')
+ playerpage = self._download_webpage(
+ 'http://play.iprima.cz/prehravac/init',
+ video_id, note='Downloading player', query={
+ '_infuse': 1,
+ '_ts': round(time.time()),
+ 'productId': video_id,
+ }, headers={'Referer': url})
formats = []