smst;422939 Wrote: 
> 
> Can I cause that to be run somewhere after every rescan?  I tried
> modifying schema_optimize.sql but it didn't seem to make a difference.
> 
Unfortunately the schema_optimize.sql script is executed before the
Custom Scan scanning process.

Custom Scan generates "customscan changedstatus" events during the
scanning process so it should be possible to make a small plugin that
runs a SQL statement when these events are generated. 

There is a sample plugin that executes a SQL statement in the following
post:
http://forums.slimdevices.com/showthread.php?p=202837#post202837

Please note that this plugin is for SlimServer 6.5 so it needs to be
adapted a bit to work in SqueezeCenter 7.0 and later.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=59219

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

Reply via email to