Explorar o código

[iprima] Confirm adult check (closes #17437)

Sergey M․ %!s(int64=7) %!d(string=hai) anos
pai
achega
09322cccdb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      youtube_dl/extractor/iprima.py

+ 2 - 0
youtube_dl/extractor/iprima.py

@@ -38,6 +38,8 @@ class IPrimaIE(InfoExtractor):
     def _real_extract(self, url):
     def _real_extract(self, url):
         video_id = self._match_id(url)
         video_id = self._match_id(url)
 
 
+        self._set_cookie('play.iprima.cz', 'ott_adult_confirmed', '1')
+
         webpage = self._download_webpage(url, video_id)
         webpage = self._download_webpage(url, video_id)
 
 
         video_id = self._search_regex(r'data-product="([^"]+)">', webpage, 'real id')
         video_id = self._search_regex(r'data-product="([^"]+)">', webpage, 'real id')