termusic icon indicating copy to clipboard operation
termusic copied to clipboard

[Feature request] play without looping

Open pt8o opened this issue 1 year ago • 2 comments

Hello, I've followed some of the issues/PR history. It looks like the playlist used to be like a "queue" where it deleted the songs after playing. Then it changed to be more like a conventional playlist, so that the songs don't get removed after being played.

That's all fine, but now I don't see a way to make it so that a playlist doesn't loop? The three modes I see are (1) loop the whole playlist, (2) loop one track, (3) randomize the playlist. Is there a way to make it just play the list of songs from beginning to end, and then stop playing?

pt8o avatar Dec 07 '23 13:12 pt8o

This is a feature that I miss too. At this moment, I think the first thing will be, move the playlist logic to server completely, so that the tui doesn't have to worry about playlist management.

tramhao avatar Dec 10 '23 19:12 tramhao

It would be easy adding a new Loop mode and the basic operation, but without doing major other refactorings, it would continue to loop the first / last track of the playlist once reaching it. This is because currently the assumption everywhere is that there will be a next / previous track available and that the Status::Stopped state will get instantly reset once the playlist has something playable (example this state occurs if the playlist is empty)

hasezoey avatar Mar 09 '24 17:03 hasezoey