mherger wrote: > > BTW do I need a *'shutdownplugin' > > > (https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Importer.pm#L42)* > > in importer.pm as well? If I have one I've noticed the scanner will > call > > it once the scan is complete. > > It's kind of obsolete by now. Unless you have to eg. write out some > information on shutdown you don't need it at all. I'm not sure I've > implemented it for any of my plugins. > > "shutdownPlugin" is mostly a left over from earlier days when we tried > to make plugins loadable on the fly, without restarting LMS. Loading > would kind of work, but un-loading can't (with Perl).
Thanks for explaining this, will get rid of this. But what about the *2* rescan done events I get? I've disabled/removed all of my import/scanner code and I still get *2* rescan done events after every rescan. Can you confirm that *2* events for rescan done is normal or can get I get it down to one? And if not, how would I make sure my callback function is only called *once*? Thank you. ------------------------------------------------------------------------ afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
