YT-DLP: YouTube Music playlist redirected to YouTube, with different (sometimes unavailable) files
In case it's relevant, I'm a YouTube Premium subscriber, running the latest stable build from the built-in updater ([email protected]), and the flags I'm using are:
--cookies-from-browser Firefox -f bestaudio --embed-metadata --embed-thumbnail -o "%(playlist)s/%(playlist_index)s - %(artist)s - %(title)s.%(ext)s"
Is there any way to get yt-dlp to **not** redirect playlists to YouTube, or at least to use the files specified in the YouTube Music playlist, and not whatever substitutes YouTube (not-Music) decides on?
I've always been aware of this redirect from its log entry, but it wasn't a problem until the YouTube versions of many songs in my playlists suddenly became unavailable.
Example redirect log entry:
[youtube:tab] Extracting URL: https://music.youtube.com/playlist?list=PLa5TBJr3KuxAuqJCYmMgPYHr7wkMb7WlA WARNING: [youtube:tab] YouTube Music is not directly supported. Redirecting to https://www.youtube.com/playlist?list=PLa5TBJr3KuxAuqJCYmMgPYHr7wkMb7WlA
When I go to the YouTube URL, the videos in the playlist are, indeed, all unavailable now. Which led me to discover that the two platforms are playing entirely different files.
Below are the URLs provided for the first track of the playlist by the two platforms.
YouTube Music (slider set to song): [https://music.youtube.com/watch?v=12V0eh-O9kM](https://music.youtube.com/watch?v=12V0eh-O9kM)
YouTube Music (slider set to video): [https://music.youtube.com/watch?v=HJMfGx86AjQ](https://music.youtube.com/watch?v=HJMfGx86AjQ)
YouTube: [https://music.youtube.com/watch?v=eO56jxk9IP8](https://music.youtube.com/watch?v=eO56jxk9IP8)
Only the third video is unavailable, and it's the one YT-DLP is trying to access because of the playlist redirect. I can pull the URL of each individual song in the playlist from the YouTube Music web interface and download them individually in YT-DLP, but I'd rather, you know, *not*.
Am I overlooking a simpler solution to this problem?