commit 09322cccdb655954c63724459556bd3ebb585d48
parent aa1d5eb9053b4c39661415ef411fb3746ee11f41
Author: Sergey M․ <dstftw@gmail.com>
Date: Thu, 6 Sep 2018 00:22:30 +0700
[iprima] Confirm adult check (closes #17437)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py
@@ -38,6 +38,8 @@ class IPrimaIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
+ self._set_cookie('play.iprima.cz', 'ott_adult_confirmed', '1')
+
webpage = self._download_webpage(url, video_id)
video_id = self._search_regex(r'data-product="([^"]+)">', webpage, 'real id')