LMS-Community / lms-community.github.io

This is the web page for the Lyrion Music Server Community repository
http://lyrion.org/
26 stars 32 forks source link

Modify #CURTRACK to Reset Value When Playlist Finishes #82

Open w3wilkes opened 6 days ago

w3wilkes commented 6 days ago

Title says it all. The way #CURTRACK currently works is when a playlist ends the value is left pointing to the end of the playlist. When subsequent selection of "Play Now" is used to start the playlist it plays just the last song in the list. I think that when #CURTRACK is active and the end of the playlist is reached the value in #CURTRACK should be reset to "0" (zero) so that the next time "Play Now" is selected for that playlist the playlist will start on the 1st track in the playlist.

michaelherger commented 5 days ago

Could you please test this with debugging for formats.playlists enabled. Then provide the tail of server.log. Thanks!

w3wilkes commented 5 days ago

The playlist has 78 tracks. I set #CURTRACK to 76 so the playlist would start on track 77. I let the playlist finish and when it stopped I removed it from the queue. The #CURTRACK statement was left at 77. I cleared the log, restarted LMS, set format.playlists to debug and then started the playlist. Log is attached. server.log.zip

w3wilkes commented 5 days ago

Issue updated as requested.

From: Michael Herger @.> Sent: Friday, November 1, 2024 03:48 To: LMS-Community/lms-community.github.io @.> Cc: w3wilkes @.>; Author @.> Subject: Re: [LMS-Community/lms-community.github.io] Modify #CURTRACK to Reset Value When Playlist Finishes (Issue #82)

Could you please test this with debugging for formats.playlists enabled. Then provide the tail of server.log. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/LMS-Community/lms-community.github.io/issues/82#issuecomment-2451606776 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BFO7MVUSJ42CCREY5ZQXFE3Z6NE43AVCNFSM6AAAAABQ63X3SKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGYYDMNZXGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/BFO7MVRVCI6AT5KK6Y3HQSTZ6NE43A5CNFSM6AAAAABQ63X3SKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUSECGPQ.gif Message ID: @. @.> >

w3wilkes commented 5 days ago

Interesting. I went to look at the clientplaylist_002315f9d2b9.m3u that was saved in the prefs folder and it has #CURTRACK set to "0", see attached. Had to rename it to a .txt to upload. clientplaylist_002315f9d2b9.txt