A feature-rich command-line audio/video downloader
[youtube] Add ability to authenticate with cookies
Sergey M․70d35d166c1c
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex e9965509ce..e7bd1f18fb 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 performedif 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