Amarok-devel Digest, Vol 53, Issue 24

Sandeep sandy.8925 at gmail.com
Mon Jun 20 16:02:08 CEST 2011


> On Thu, Jun 16, 2011 at 20:17, Ralf Engels<ralf-engels at gmx.de>  wrote:
>> So I would say a new function "checkForStaleFiles" in the Amarok class
>> maybe (or playlist class) would be needed.
>> The it should be called some time after startup (maybe five or ten
>> seconds. Not directly after startup when so many things are going on).
>>
I'm not able to figure out where this function should be. Should it be 
in Playlist::Controller ? Also, should it only remove stale files from 
the playlist or from collection as well?
>> There is a getUrl function in the Meta::Track class that can be used to
>> check the location of the file.
>> Also sometimes the track can be deleted from the collection but the
>> playlist not updated (e.g. if you remove the database but not the other
>> amarok settings files)
>> In this case you might get some null pointers which also indicate
>> removed tracks.
>> (don't forget testing with audio streams and maybe some other
>> collections like when playing from a audio cd)
Shall I implement Meta::Track::isPlayable instead? It looks like it 
would be easier that way.

Thanks,
Sandeep


More information about the Amarok-devel mailing list