logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: ee0b726cd74ac6d4f6b187b1264baa0fc14c8800
parent dbeafce5d58b0d40b7af35e5276f77855ced81a4
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue, 16 Jun 2020 06:17:53 +0700

[youtube] Force old layout (closes #25682, closes #25683, closes #25680, closes #25686)

Diffstat:

Myoutube_dl/extractor/youtube.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)