New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Youtube Mixes #1400

Open
marnunez opened this Issue Dec 29, 2014 · 9 comments

Comments

Projects
None yet
8 participants
@marnunez
Copy link

marnunez commented Dec 29, 2014

Youtube Mixes are supported in youtube-dl since this fix. Mpv loads the mix link as a single video (the first one). It would be nice to have the link parsed as a playlist instead (if possible).

@ChrisK2

This comment has been minimized.

Copy link
Member

ChrisK2 commented Dec 29, 2014

Okay, this is a bit tricky. By default we disable resolving playlists for such URLs, since that's not intended by the user most of the time. If the user actually wants to play the whole playlist, he needs to pass the actual playlist URL (youtube.com/playlist?list=...) to mpv, however the Youtube website doesn't provide these URLs for mixes. You can however still build such a URL yourself which will work with mpv:

http://www.youtube.com/watch?v=lLJf9qJHR3E&list=RDrjFaenf1T-Y
                                                ^^^^^^^^^^^^^

Take the playlist ID from the URL, and build a playlist URL with it by putting it here:

http://www.youtube.com/playlist?list=RDrjFaenf1T-Y
                                     ^^^^^^^^^^^^^

The YouTube Website will show an error if you try to open that URL in your browser, but youtube-dl (and mpv) can still resolve it as the full playlist.

Maybe we should add an option to disable the --no-playlist flag, then this would work right away.

@marnunez

This comment has been minimized.

Copy link
Author

marnunez commented Dec 29, 2014

Thanks Chris, it works just like you say. Is the pattern http://www.youtube.com/watch?v=bla1&list=bla2 used for anything else but mixes? I undestand playists go straight for the playlist? option. If such, watch?+list means it's a mix, right?

@ChrisK2

This comment has been minimized.

Copy link
Member

ChrisK2 commented Dec 29, 2014

No, videos that come from a playlist often also have that URL format to indicate the playlist they come from. You often find such links on the internet or even when you click on a specific video on the Youtube Website. mpv would always load the entire playlist and start playing the first video of the list and not the one that was actually linked if we didn't disable playlist resolving for "mixed" URLs.

@FedericoCeratto

This comment has been minimized.

Copy link

FedericoCeratto commented Jan 19, 2015

I was able to get a playlist URL by coping it from the browser.
mpv was able to play every video in sequence. It would be nice if it could allow go browse the videos with the forward/next arrows :)

@Kagami

This comment has been minimized.

Copy link
Contributor

Kagami commented Mar 25, 2015

@FedericoCeratto do the "<", ">" and "ENTER" keybindings work for you?
Btw I was trying to play the entire channel's videos as a playlist and was thinking about creating issue for this but then I realized it's already available in mpv. Great work, guys!

@wm4 wm4 added the stalled label Jul 18, 2015

@ghprod

This comment has been minimized.

Copy link

ghprod commented Oct 1, 2015

Thanks @Kagami for hint 👍

@marnunez

This comment has been minimized.

Copy link
Author

marnunez commented Oct 5, 2015

@Kagami Uhhhh it never occurred to me! Nice tip!

@sslesar

This comment has been minimized.

Copy link

sslesar commented Feb 7, 2017

Very simple how to watch any youtube (single video or playlists). I just downloaded MPV player and downloaded youtube-dl on the single folder. After that, I created mpv.exe shortcut and added the parameter: --no-border --ontop.
that should result - D:\soft\MPV\mpv.exe --no-border --ontop
Finally open that shortcut and appeared MPV player and open any youtube playlist. Then select url bar and drag it and drop into player! done. I am talking about drag and drop any selected urls .
Sorry for my bad english.

@lachs0r

This comment has been minimized.

Copy link
Member

lachs0r commented Jul 21, 2017

By the way: --ytdl-raw-options=yes-playlist= will make these URLs work without changing them. Only downside is that it doesn’t start at the right playlist entry.

wiiaboo added a commit that referenced this issue Feb 11, 2018

ytdl_hook: parse youtube playlist urls to set start index
Still needs `--ytdl-raw-option=yes-playlist=` because this only
works for youtube.

This was requested in a few issues:
#1400
#2592
#3024

For #1400 to be completely implemented would need ytdl_hook to
re-request the same playlist with the last video's ID for the mix to
continue indefinitely which would probably too hackish to work reliably.

kevmitch added a commit that referenced this issue Feb 12, 2018

ytdl_hook: parse youtube playlist urls to set start index
Still needs `--ytdl-raw-option=yes-playlist=` because this only
works for youtube.

This was requested in a few issues:
#1400
#2592
#3024

For #1400 to be completely implemented would need ytdl_hook to
re-request the same playlist with the last video's ID for the mix to
continue indefinitely which would probably too hackish to work reliably.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment