diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-13 16:39:11 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-13 16:39:11 +0100 |
commit | 880e1c529de1d0f7f0a065afc4148320894a25b4 (patch) | |
tree | 9ab2515e824b2514d09649f5326c1773171d2f89 /youtube_dl/extractor/youtube.py | |
parent | dcbb45803f9b70041ec0ef9c3c6547340bd1ef7a (diff) | |
download | youtube-dl-880e1c529de1d0f7f0a065afc4148320894a25b4.zip youtube-dl-880e1c529de1d0f7f0a065afc4148320894a25b4.tar.gz youtube-dl-880e1c529de1d0f7f0a065afc4148320894a25b4.tar.bz2 |
[youtube:playlist] Login into youtube if requested (fixes #1757)
Allows to download private playlists
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index d97ea8c..c48c0e2 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1490,7 +1490,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): }) return results -class YoutubePlaylistIE(InfoExtractor): +class YoutubePlaylistIE(YoutubeBaseInfoExtractor): IE_DESC = u'YouTube.com playlists' _VALID_URL = r"""(?: (?:https?://)? @@ -1516,6 +1516,9 @@ class YoutubePlaylistIE(InfoExtractor): """Receives a URL and returns True if suitable for this IE.""" return re.match(cls._VALID_URL, url, re.VERBOSE) is not None + def _real_initialize(self): + self._login() + def _real_extract(self, url): # Extract playlist id mobj = re.match(self._VALID_URL, url, re.VERBOSE) |