Skip to content

Commit

Permalink
[youtube] Add ability to authenticate with cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Apr 21, 2018
1 parent 3853309 commit 70d35d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/youtube.py
Expand Up @@ -87,7 +87,7 @@ def _login(self):
(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

Expand Down

0 comments on commit 70d35d1

Please sign in to comment.