Skip to content

Save and restore the playing state when the app restarts#109

Open
flodavid wants to merge 3 commits intoellie-commons:masterfrom
flodavid:restore-playing-state
Open

Save and restore the playing state when the app restarts#109
flodavid wants to merge 3 commits intoellie-commons:masterfrom
flodavid:restore-playing-state

Conversation

@flodavid
Copy link

@flodavid flodavid commented Dec 12, 2025

Add new settings where current track and queue information (type and id of playlist) are stored : last-played, queue-type, queue-id, track-progression.
Those data are stored when the track or queue changes, and when the current playing track progression changes (every two seconds).
When the application starts, the saved data are read and the current queue, track played and progression are restored. Next track information is not stored, so when "shuffle" is used, the next tracks of the playlist are shuffled again.

  • I did not implement restoring from Radio
  • When a track is not found, we now read the next one instead of stopping playback.
  • Also fixes the database method get_track_by_id to retrieve the Artist name from the Track, not the Artist of the Album. It could lead to errors.

- Queues are an album, an artist, a playlist, favorites,
all songs or recently added ones
- Improve last played "queue" restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant