Hi

I've implemented a very preliminary alpha version of Custom Scan plugin
for 7.6 which following changes:

1. When doing a full rescan, Custom Scan now runs inside the main
scanner process, my hope is that this should make it possible to play
music without interruption while doing a full rescan.
2. When a new/changed files scanning is performed in SBS, Custom Scan
will now only rescan the changed/new/deleted files instead of doing a
full rescan. 
3. The status of Custom Scan rescans triggered by a SBS rescan is now
shown in the main status dialog in SBS Settings/Information.

Known limitations in this alpha version:
- Haven't tested or implemented anything regarding export/import
modules provided by TrackStat, so my guess is that these probably won't
work yet when triggered from the main SBS scanner.
- A scanning triggered by SBS rescan can currently not be aborted in a
nice way, I'll implement this but I wanted to make something available
for testing already now.

It's still possible to trigger a rescan the old way through the Custom
Scan settings page, but this won't take advantage of the new features,
it will basically work exactly as before.

Now, there is a lot of work left before this is ready for general
usage, but I'm posting it here because I really need help to test it.
I'd strongly recommend anyone testing it to either use a separate
environment or make sure that you take a backup of the Cache directory
(or at least the database files or TrackStat data) before so you can
easily restore it afterwards if something goes wrong. The reason a
backup is important is in case it hangs or crashes as I've seen issues
where this can in worst case corrupt the database (where TrackStat data
is stored).

The things I'd like help to test is:
- Performance of full rescans, is it better or worse than before ?
- Accuracy of new/changed rescan, does it seem to do the right thing ?
- Is there any disturbance in music playing while scanning ?
- How is the disc usage during scanning ? I'm asking as I saw the
persist.db-wal file to get really large (over 500MB) in my own setup
with only 3500 tracks so I want to be sure this doesn't get worse in
larger libraries.

To install it you need to add the following repository to SBS
Settings/Plugins:

Code:
--------------------
    
  http://erlandplugins.googlecode.com/svn/repository/trunk/alpha.xml
  
--------------------


And then just upgrade/install the Custom Scan alpha version that
appears in the list.

I'm not sure any of this will be included in an official release yet,
depends on how much inspiration and available spare time I get to
finish it. If you want to encourage future work in this direction or
make it more prioritized, you know where to find the donation link.

If you try this alpha version and find some issues:
- Describe the issues and post back to this thread
- And if the error is a crash or something that's hard to reproduce,
try to enable debug logging of "plugin.customscan" in SBS
Settings/Advanced/Logging and post any error messages in server.log or
scanner.log.

Also, please post back in this thread also if you try it and it works
without any problems as I'd like to know if someone has tested it.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=89768

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to