aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-09-06 00:22:30 +0700
committerSergey M․ <dstftw@gmail.com>2018-09-06 00:22:53 +0700
commit09322cccdb655954c63724459556bd3ebb585d48 (patch)
tree81b5b6714128c42caf7028fe0e1b3291ede1e9c7
parentaa1d5eb9053b4c39661415ef411fb3746ee11f41 (diff)
[iprima] Confirm adult check (closes #17437)
-rw-r--r--youtube_dl/extractor/iprima.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py
index a29e6a5ba..3c4b7e48b 100644
--- 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')