[steam] Bypass mature content check (closes #16113)
authorSergey M․ <dstftw@gmail.com>
Sat, 7 Apr 2018 17:29:43 +0000 (00:29 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 7 Apr 2018 17:29:43 +0000 (00:29 +0700)
youtube_dl/extractor/steam.py

index e5ac586a7f750b131de611ca9bf66b6f826e54dd..a6a191cebb4b98e46627ecc9ae8bd70071193ea6 100644 (file)
@@ -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: