request: periodically save current playlist

Bug #425328 reported by ackstorm
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Exaile
Confirmed
Medium
Unassigned
Nominated for 0.3.2 by nickless
Nominated for 0.3.x by ackstorm

Bug Description

Currently exaile only saves your playlist changes if you cleanly exit the program. This means if exaile crashes, or has to be killed due to a hang, your playlist changes are lost.

Because of dynamic playlist features saving at every playlist change would be unreasonable, so I am requesting that exaile periodically save the running playlist every X minutes

Revision history for this message
ackstorm (temper) wrote :

reacocard> perhaps "save playlist x second after last change, and at least every y
            minutes" -01:25PM-
<hednod> right -01:26PM-
<SiDi_> if you have dynamic PLs it means write to HDD every 5 secs -01:29PM-
<SiDi_> that would be insane -01:29PM-
<SiDi_> Instead we prefer having exaile never crashing ! :D -01:29PM-
<reacocard> not every 5 secs, mroe every 5 minutes -01:29PM-
<reacocard> which is still rather often -01:29PM-
<hednod> well you could ahve it save every change, but no more often than 10 minutes
         -01:29PM-
<reacocard> hm, save 1 minute after last change, no more often than every 10-15? -01:30PM-
<hednod> if no change for the last X minutes, save immediately, else wait Y minutes
         -01:31PM-
<SiDi_> and sync writes to disk with read from disk to avoid waking the HDD :P -01:31PM-
<reacocard> SiDi_: tie te save into track change signals then, perhaps -01:31PM-
<SiDi_> this could also be a base for custom playlist autosave -01:31PM-

Revision history for this message
ackstorm (temper) wrote :

<reacocard> along with a timer so that it still saves when not playing and when playing
            really long songs -01:32PM-
<reacocard> hm -01:32PM-
<reacocard> this would play very will with providers actually -01:32PM-
<reacocard> and we can tie the settings save and collection db save into it too -01:32PM-

reacocard (reacocard)
Changed in exaile:
importance: Undecided → Medium
milestone: none → 0.3.1
status: New → Confirmed
Revision history for this message
dst (dast) wrote :

I'd also like to have such a feature. It not only happens when Exaile crashes, but it also seems to be the case when I quit the session. If I want to keep my playlist status despite a restart, I first need to manually quit Exaile before restarting.

Since I do not use dynamic playlists I would prefer something non-periodical.

reacocard (reacocard)
Changed in exaile:
milestone: 0.3.1 → 0.3.2
Revision history for this message
matejcik (matejcik) wrote :

yes!
as dst said - i don't use dynamic playlists and i'd be perfectly happy with saving playlist after every change

but "save n seconds after last change, at least every X minutes" sounds good enough

Revision history for this message
data (yavor-dobrev) wrote :

When Exaile is being killed it does save the playlist, no problem there. But when it gets shut down, when ending a session/restart the playlist doesn't get saved.One can correct this behavior by adding the line "killall exaile" to some rc script, which gets run at shutdown. This is however not a very tidy way to do it...

reacocard (reacocard)
Changed in exaile:
milestone: 0.3.2 → 0.3.3
Revision history for this message
Mathias Brodala (mathbr) wrote :

Postponed for now due to imminent RC. This needs to be thought through properly.

Changed in exaile:
milestone: 3.3.0 → 3.x
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.