mherger wrote: 
> 
> > But it turns out the *refresh function tied to rescan done is called
> > _twice_* after a scan.
> 
> Your own refresh function? Is refreshAll() called twice or the callback 
> for the rescan done event?

Yes, the callback (= the function *'importerPostScanRefresh'
(https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Plugin.pm#L1268)*)
for the *'rescan done event'
(https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Plugin.pm#L89)*
is triggered twice. Seems to receive 2 rescan done events??

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.


------------------------------------------------------------------------
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

Reply via email to