afriend wrote: > Thanks for making me aware. Since I've never used LMS while it's > (re)scanning it would have never occurred to me to look for this. And it > happens with RL too. I can see the code in TS for that. > What's the easiest way to make LMS execute a function once the scan is > completely finished? I just mean how/where I triggered the code. >
In TrackStat I subscribe on the rescan event https://github.com/erland/lms-trackstat/blob/fe583776eafce682086a0cc2731a8676b67652f6/src/Plugin.pm#L3998 And process the queue when rescan done triggers: https://github.com/erland/lms-trackstat/blob/fe583776eafce682086a0cc2731a8676b67652f6/src/Plugin.pm#L4145 Might be better ways these days, dont remember what was added when the other scanner hooks was introduced. Erland Isaksson ('My homepage' (http://erland.isaksson.info)) Developer of 'many plugins/applets' (https://wiki.slimdevices.com/index.php/User_Erland.html) *Starting with LMS 8.0 I no longer support my plugins/applets* ('see here for more information' (https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins&p=998836&viewfull=1#post998836) ) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=113344
_______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
