mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-21 15:23:13 +00:00
[youtube] fix: Youtube Music playlists
This commit is contained in:
parent
7166f47b18
commit
659ddd7f70
1 changed files with 5 additions and 2 deletions
|
@ -2965,9 +2965,12 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
|
||||||
if video:
|
if video:
|
||||||
return video
|
return video
|
||||||
|
|
||||||
|
youtube_music_playlist_prefix = 'RDCLAK5uy_'
|
||||||
if playlist_id.startswith(('RD', 'UL', 'PU')):
|
if playlist_id.startswith(('RD', 'UL', 'PU')):
|
||||||
# Mixes require a custom extraction process
|
if not playlist_id.startswith(youtube_music_playlist_prefix):
|
||||||
return self._extract_mix(playlist_id)
|
# 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)
|
has_videos, playlist = self._extract_playlist(playlist_id)
|
||||||
if has_videos or not video_id:
|
if has_videos or not video_id:
|
||||||
|
|
Loading…
Reference in a new issue