aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-04-22 06:08:05 +0700
committerSergey M․ <dstftw@gmail.com>2018-04-22 06:08:05 +0700
commit70d35d166c1cfb14af20fb6d45ed820b6249f941 (patch)
tree2e2610b5fcbc404f4aad0e147360159ef9f59f4c
parent3853309fe238bb709b7c5db261724c33b48a8693 (diff)
downloadyoutube-dl-70d35d166c1cfb14af20fb6d45ed820b6249f941.tar.xz
[youtube] Add ability to authenticate with cookies
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index e9965509c..e7bd1f18f 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -87,7 +87,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
(username, password) = self._get_login_info()
# No authentication to be performed
if username is None:
- if self._LOGIN_REQUIRED:
+ if self._LOGIN_REQUIRED and self._downloader.params.get('cookiefile') is None:
raise ExtractorError('No login info available, needed for using %s.' % self.IE_NAME, expected=True)
return True