1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-19 19:49:33 +00:00

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

This commit is contained in:
Sergey M․ 2018-04-08 00:29:43 +07:00
parent cae5d9705c
commit 717ea4e14e
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -75,6 +75,9 @@ class SteamIE(InfoExtractor):
gameID = m.group('gameID') gameID = m.group('gameID')
playlist_id = gameID playlist_id = gameID
videourl = self._VIDEO_PAGE_TEMPLATE % playlist_id videourl = self._VIDEO_PAGE_TEMPLATE % playlist_id
self._set_cookie('steampowered.com', 'mature_content', '1')
webpage = self._download_webpage(videourl, playlist_id) webpage = self._download_webpage(videourl, playlist_id)
if re.search('<h2>Please enter your birth date to continue:</h2>', webpage) is not None: if re.search('<h2>Please enter your birth date to continue:</h2>', webpage) is not None: