ytfzf icon indicating copy to clipboard operation
ytfzf copied to clipboard

[Feature request]: shuffle playlist

Open saifg12345 opened this issue 1 year ago • 5 comments

Is there any way in ytfzf to add shuffling features to playlists? I was wondering but I don't really have any bash scripting knowledge as far as scripting goes.

saifg12345 avatar Apr 15 '24 23:04 saifg12345

Depends on your video player, ytfzf uses mpv by default which i think does have playlist shuffling

--shuffle Play files in random order.

You could just select all the items in a playlist (or the playlist itself) and give it to mpv, and have --url-handler-opts=--shuffle and mpv will shuffle the playlist.

Euro20179 avatar Apr 16 '24 15:04 Euro20179

I tried this and it didn't work. Do I have to manually set it in mpv? I’m currently running “ytfzf —type=playlists —url-handler-opts=—shuffle,” is this right?

saifg12345 avatar Apr 16 '24 20:04 saifg12345

I think you need --type==playlist,

but if that doesn't work then i'm not sure.

Do I have to manually set it in mpv

No harm in trying.

Euro20179 avatar Apr 18 '24 14:04 Euro20179

Yeah, I just ended up playing my music with mpv only. Thanks for the help though!

saifg12345 avatar Apr 19 '24 22:04 saifg12345

Updated and working ytfzf project here: https://github.com/tabletseeker/ytfzf_prime

tabletseeker avatar Apr 28 '25 09:04 tabletseeker