mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[steam] Bypass mature content check (closes #16113)
This commit is contained in:
parent
cae5d9705c
commit
717ea4e14e
@ -75,6 +75,9 @@ def _real_extract(self, url):
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user