Bugzilla – Bug 2932
Temp Files are still exist after finished playlist
Last modified: 2006-02-11 01:26:14 UTC
A temp file of a playlist will still remain in the playlist folder after the playlist is finished. Example: Start a playlist over "Browse Playlists" (it doesn't mater if you start it from the web UI or from the squeezebox). A temp file of the current playlist will be creating in the playlist folder. After playing all titles on the playlist I turn off the SB or play another playlist, but the temp file of the playlist will still exist in the playlist folder. I have to clean up manually it...
what are the filenames of these temp files?
The file name are the same as the playlsit name with tmp as extension. Example: Depeche Mode - Speech.tmp -> Depeche Mode --- Speech.tmp
I've never seen anything like that before. In fact, I am not aware of slimserver creating any temp files aside from what used to be "player playlists", before slimserver v6.0.
But that's the fact. Every time I use a playlist, there is a tmp file in Playlist directory. One correction: the tmp file is e.g. Depeche Mode --- Speech.m3u.tmp If I show inside the tmp file, there is the same as in the original m3u file, not more.
in response to comments posted in bug 1710 (which I assume were intended for bug 2932): I see where this is being done. Slimserver tries to keep track of the current song for each playlist. If you restart a givne playlist, it will use that track. The current track info is written to a temp file, which overwrites the playlist file IF it is writeable. Dan, what do you think about simply deleting the tmp file, like so: if (-w $path) { rename("$path.tmp", $path); } else { delete("$path.tmp"); }
er, guess that delete really should be "unlink", but I expect that should take care of things.
Yeah - looks ok to me.
committed to trunk at change 6199 for 6.5 builds committed to 6.2.2 builds at change 6200. Please try the Feb 10 build and re-open if issues remain.
worked! thanks. One hint: My last comment are not shown her: The temp will be only created, if the playlist file is read only. Regards, Jens