]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[iprima] Confirm adult check (closes #17437)
authorSergey M․ <dstftw@gmail.com>
Wed, 5 Sep 2018 17:22:30 +0000 (00:22 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 5 Sep 2018 17:22:53 +0000 (00:22 +0700)
youtube_dl/extractor/iprima.py

index a29e6a5badd2ef0403a2b8b4afe1c1ef2f926d4c..3c4b7e48b5c8612df5007490ced27f6022d74ff1 100644 (file)
@@ -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')