Ubuntu – How to auto-play a YouTube playlist using mps-youtube

command lineyoutube

I looked into the documentation of mps-youtube but to me it is not clear how to play a YouTube playlist the same way I would play the playlist directly on YouTube.

Let's take the following example playlist:

https://www.youtube.com/playlist?list=PLFygEs0Hto_pFR897UnySP8QvZdFCNyjX

On YouTube, I click on "Play All" to auto-play the entire playlist. After each song, the player automatically jumps to the next song in the playlist.

How can I play a playlist exactly in this way using mps-youtube?

Best Answer

You can get the same behavior in mpsyt by first loading the playlist with

pl https://www.youtube.com/watch?v=ANEpNH2GiUQ&list=PL3tRBEVW0hiBzIOB97URaYILQdNCMZnvn

it will show all videos in the playlist. To play all you can simply type

1-

which will play all videos from the first. If you want to play shuffled you can type

shuffle

before starting the playback with the command above.