trizen / youtube-viewer

Lightweight YouTube client for Linux
https://trizenx.blogspot.com/2012/03/gtk-youtube-viewer.html
Artistic License 2.0
1.19k stars 86 forks source link

Displaying full playlist #406

Open BruhMomient opened 2 years ago

BruhMomient commented 2 years ago

How do you do, sorry for making this my personal tech support, but how does one display a full playlist instead of just the first 20 results? It seems that even if i put it on shuffle, no repeat, it'll shuffle the first 20 tracks, then shuffle the next 20 tracks, and so on, when i want it to shuffle the whole playlist.

trizen commented 2 years ago

Due to the YouTube API limitation, it's currently not possible to list more than 50 entries.

To increase the number of results to 50, use either the -m option, or --results=20 option:

$ youtube-viewer --results=50

Alternatively, take a look at the --save-playlist=ID option (or :s=i input option in playlists context), which will save a playlist of video IDs locally in the following directory: ~/.config/youtube-viewer/playlists.

The list of saved local playlists can be listed with youtube-viewer -lp

BruhMomient commented 2 years ago

Thanks for the quick response, just recently installed this program and I always get a bit overwhelmed trying to learn CLI commands, even if they're quite simple (as they are here!) Thought that would be the issue, I know newpipe has a similar problem, you have to manually load the whole playlist before playing it will work