projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Add ability to authenticate with cookies
[youtube-dl]
/
youtube_dl
/
extractor
/
youtube.py
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index e9965509ce404b71bb44843882d79f9884a97a25..e7bd1f18fb504c8541d0fbdc301980cab07d1f54 100644
(file)
--- 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:
(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
raise ExtractorError('No login info available, needed for using %s.' % self.IE_NAME, expected=True)
return True