Skip to content

A feature-rich command-line audio/video downloader

Merge remote-tracking branch 'jaimeMF/yt-toplists'

Philipp Hagemeisterffa8f0df0a87
diff --cc youtube_dl/extractor/youtube.py
index 7f7508c74f,a1a4d896de..874429b78c
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@@ -1569,9 -1573,12 +1569,12 @@@ class YoutubePlaylistIE(YoutubeBaseInfo
else:
self.to_screen(u'Downloading playlist PL%s - add --no-playlist to just download video %s' % (playlist_id, video_id))
- if len(playlist_id) == 13: # 'RD' + 11 characters for the video id
+ if playlist_id.startswith('RD'):
# Mixes require a custom extraction process
return self._extract_mix(playlist_id)
+ if playlist_id.startswith('TL'):
+ raise ExtractorError(u'For downloading YouTube.com top lists, use '
+ u'the "yttoplist" keyword, for example "youtube-dl \'yttoplist:music:Top Tracks\'"', expected=True)
# Extract the video ids from the playlist pages
ids = []