projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa1d5eb
)
[iprima] Confirm adult check (closes #17437)
author
Sergey M․
<dstftw@gmail.com>
Wed, 5 Sep 2018 17:22:30 +0000
(
00:22
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 5 Sep 2018 17:22:53 +0000
(
00:22
+0700)
youtube_dl/extractor/iprima.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/iprima.py
b/youtube_dl/extractor/iprima.py
index a29e6a5badd2ef0403a2b8b4afe1c1ef2f926d4c..3c4b7e48b5c8612df5007490ced27f6022d74ff1 100644
(file)
--- 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')