projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae5d97
)
[steam] Bypass mature content check (closes #16113)
author
Sergey M․
<dstftw@gmail.com>
Sat, 7 Apr 2018 17:29:43 +0000
(
00:29
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 7 Apr 2018 17:29:43 +0000
(
00:29
+0700)
youtube_dl/extractor/steam.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/steam.py
b/youtube_dl/extractor/steam.py
index e5ac586a7f750b131de611ca9bf66b6f826e54dd..a6a191cebb4b98e46627ecc9ae8bd70071193ea6 100644
(file)
--- a/
youtube_dl/extractor/steam.py
+++ b/
youtube_dl/extractor/steam.py
@@
-75,6
+75,9
@@
class SteamIE(InfoExtractor):
gameID = m.group('gameID')
playlist_id = gameID
videourl = self._VIDEO_PAGE_TEMPLATE % playlist_id
+
+ self._set_cookie('steampowered.com', 'mature_content', '1')
+
webpage = self._download_webpage(videourl, playlist_id)
if re.search('<h2>Please enter your birth date to continue:</h2>', webpage) is not None: