]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Force old layout (closes #25682, closes #25683, closes #25680, closes ...
authorSergey M․ <dstftw@gmail.com>
Mon, 15 Jun 2020 23:17:53 +0000 (06:17 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 15 Jun 2020 23:17:53 +0000 (06:17 +0700)
youtube_dl/extractor/youtube.py

index 53dccdf0bf793568d78f4291029092d6b216b7b9..1bc79e01478445ede9a2b3a0f1d4ebea38ce7534 100644 (file)
@@ -77,7 +77,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
 
     def _set_language(self):
         self._set_cookie(
-            '.youtube.com', 'PREF', 'f1=50000000&hl=en',
+            '.youtube.com', 'PREF', 'f1=50000000&f6=8&hl=en',
             # YouTube sets the expire time to about two months
             expire_time=time.time() + 2 * 30 * 24 * 3600)