From: Sergey M․ Date: Mon, 15 Jun 2020 23:17:53 +0000 (+0700) Subject: [youtube] Force old layout (closes #25682, closes #25683, closes #25680, closes ... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ee0b726cd74ac6d4f6b187b1264baa0fc14c8800;p=youtube-dl [youtube] Force old layout (closes #25682, closes #25683, closes #25680, closes #25686) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 53dccdf0b..1bc79e014 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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)