diff options
author | Matt Broadway <mattdbway@gmail.com> | 2021-07-21 21:32:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 02:02:49 +0530 |
commit | 982ee69a742347efe91acb12df1f14ba5c7f65dd (patch) | |
tree | 31c41031b709ef51915edc0fa3a6f4b58a6b8554 /yt_dlp/extractor/youtube.py | |
parent | 7ea654112425d05227dde972a869d5507c685b4b (diff) |
Add option `--cookies-from-browser` to load cookies from a browser (#488)
* also adds `--no-cookies-from-browser`
Original PR: https://github.com/ytdl-org/youtube-dl/pull/29201
Authored by: mbway
Diffstat (limited to 'yt_dlp/extractor/youtube.py')
-rw-r--r-- | yt_dlp/extractor/youtube.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 5ef59f680..73f38402b 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -99,7 +99,9 @@ class YoutubeBaseInfoExtractor(InfoExtractor): self.report_warning(message) # username+password login is broken - if self._LOGIN_REQUIRED and self.get_param('cookiefile') is None: + if (self._LOGIN_REQUIRED + and self.get_param('cookiefile') is None + and self.get_param('cookiesfrombrowser') is None): self.raise_login_required( 'Login details are needed to download this content', method='cookies') username, password = self._get_login_info() |