I did look into that recently. I trigger the rescan when that happens 
and, tracing through the SqueezeCenter code, it looks as though removed 
files are supposed to be removed from the database if they can't be 
found during that rescan. However, the files aren't actually removed, 
which I think might be a bug.

I think there's a couple of known enhancement request in this area:
http://bugs.slimdevices.com/show_bug.cgi?id=3928
http://bugs.slimdevices.com/show_bug.cgi?id=5158

When I get some time I might try tracing through bit more thoroughly to 
try to understand what's going on. Like I said, I *think* it's supposed 
to work already judging by the code I found.

Given the complexities of the database I think it would be quite messy 
for a plugin such as mine to start removing data from the database so I 
think I'm reliant on the core SqueezeCenter functionality to do that, 
unfortunately.

Stuart

schiegl wrote:
> ------------------------------------------------------------------------
> A poll associated with this post was created, to vote and see the
> results, please visit http://forums.slimdevices.com/showthread.php?t=46795
> ------------------------------------------------------------------------
> Question: Would you like to see SC7 enhanced to include "Scan/
> Rescan this folder and its conte
>     
> - Yes, I'd love to see this enhancement implemented
> - No, don't see any point, I watch TV between updates
> ------------------------------------------------------------------------
>
> hickinbottoms;295403 Wrote: 
>   
>> I think a better alternative is for the server to monitor and
>> automatically spot changes to the music folder and to rescan it as and
>> when it sees those changes - you shouldn't need to manually poke it all
>> IMO.
>>
>> Modern OS's include robust functions to monitor folders for changes
>> that don't rely on applications changing timestamps etc - I know at
>> least MAC OSX, Linux, BSD and Windows include this. Unfortunately the
>> mechanisms to implement this differ from OS to OS.
>>
>> I've worked up a beta plugin to do this on Linux ('AutoRescan' - check
>> the plugins on the wiki if you're interested), and I'm planning on
>> widening it to support Windows as well when I get time.
>>
>> Stuart
>>     
>
> Stuart,
>
> i recently tested your AutoRescan Plugin. For new/modified files it
> works wonderful! Would it be (even theoretically) possible to remove
> files from the SC-Database this way?
>
> The server.log indicates the plugin knows what happened (first a new
> file has been copied to .../Incoming, a few minutes later i removed it
> again)
>
>
> Code:
> --------------------
>     
>   [08-04-25 13:49:14.0938] Plugins::AutoRescan::Plugin::watchCallback (289) 
> Directory detected as modified by file modification: /.../Incoming
>   [08-04-25 13:49:19.1166] Plugins::AutoRescan::Plugin::inotifyPoller (232) 
> Triggering RESCAN of folder: /.../Incoming
>   ...
>   [08-04-25 13:55:07.8648] Plugins::AutoRescan::Plugin::watchCallback (309) 
> Directory detected as modified by move out: /.../Incoming
>   [08-04-25 13:55:12.8877] Plugins::AutoRescan::Plugin::inotifyPoller (232) 
> Triggering RESCAN of folder: /.../Incoming
>   
> --------------------
>
>
> I know the offical way to remove files from the DB is a wipe & scan
> procedure.
>
> kind regards,
> Markus
>
>
>   
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to