tramhao / termusic

Music Player TUI written in Rust
GNU General Public License v3.0
1.05k stars 44 forks source link

Termusic hangs after song ends or is skipped with 1 song in playlist #324

Open DaL31 opened 4 months ago

DaL31 commented 4 months ago

Environment & Versions

System:

Termusic version: Termusic d102a05[g]

Logs: No log file in /tmp/

Description of the Problem

After a song ends or when I press n anywhere between start and end of the song then the music stops. I then can't repeat the song manually or choose another song to play and need to restart termusic.

Looks like termusic just hangs if there is exactly 1 song in the playlilst and the songs ends or is being skipped while not being in "Loop Mode Cycle" m. If there is more than 1 song in the playlist it works like expected.

I've tried:

Only the last method enables the function to play a song again.

hasezoey commented 4 months ago

while not being in "Loop Mode Cycle" m.

you are always in a mode, the hotkey m just cycles through those modes; default in a new config is mode playlist.


it is known that playlist handling is quite wonky (for example #189).

it might already be fixed (or at least not being stuck anymore), please try the latest master version (currently ac0b9246e1e1a610f9438b4d5b0f2f0f96275ea3) instead of 0.9.0. (from the version i can tell you are using AUR termusic, maybe try AUR termusic-git instead).

if it is not fixed, then it is likely that the current behavior just does not expect loop mode playlist to have just one entry and tries to advance its index, but that does not exist so it cannot play it.