[youtube] fix: Youtube Music playlists

pull/118/head
insaneracist 4 years ago
parent 7166f47b18
commit 659ddd7f70

@ -2965,8 +2965,11 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
if video:
return video
youtube_music_playlist_prefix = 'RDCLAK5uy_'
if playlist_id.startswith(('RD', 'UL', 'PU')):
# Mixes require a custom extraction process
if not playlist_id.startswith(youtube_music_playlist_prefix):
# Mixes require a custom extraction process,
# Youtube Music playlists act like normal playlists (with randomized order)
return self._extract_mix(playlist_id)
has_videos, playlist = self._extract_playlist(playlist_id)

Loading…
Cancel
Save