------------------------------------------------------------------------
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
--
schiegl
------------------------------------------------------------------------
schiegl's Profile: http://forums.slimdevices.com/member.php?userid=6654
View this thread: http://forums.slimdevices.com/showthread.php?t=46795
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss