logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 717ea4e14e59bded0c2fb20e84b6513d82644b43
parent cae5d9705c28ffc0bf5e149a5f92d31a48208e49
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun,  8 Apr 2018 00:29:43 +0700

[steam] Bypass mature content check (closes #16113)

Diffstat:

Myoutube_dl/extractor/steam.py3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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: