Browse Source
[youtube] Add ability to authenticate with cookies
master
Sergey M․
6 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|
|
|
|