Re: When developing a plugin, where should I put it in the Docker container?

adhawkins <adhawkins.akkdko-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 17 May 2022 10:14:28 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
A bit more digging as I refresh my memory of how this plugin works! All
of this is running in the latest Docker container.

I have the following code in the plugin:

> 
> 			my $newID = Slim::Music::VirtualLibraries->registerLibrary( {
> 				id => $library,
> 				name => "SimpleLibraryViews $library",
> 				scannerCB => sub {
> 					my $libraryId = shift;
> 					main::DEBUGLOG && $log->is_debug && $log->debug("Scanner callback
> for libraryId: '$libraryId'");
> 					main::DEBUGLOG && $log->is_debug && $log->debug("Scanner callback
> for library: '$library'");
> 
> 					createLibrary($libraryId, $library);
> 
> 					main::DEBUGLOG && $log->is_debug && $log->debug("Scanner callback
> called createLibrary");
> 				}
> 			} );
> 
> 			$log->info("Registered library $newID");
> 

Whenever I make a settings change that creates a new library in my
plugin, I see the 'Registered library xxxx' line in the log, with what
seems to be a valid ID (e.g. f46a55b9). 

When the server starts, I see the 'Scanner callback...' log entries, and
an entry from within createLibrary that shows it was called outside of
the scanner. However, when I run a scan (clear all and rescan at the
moment) I don't see any of these entries.

Any suggestions?

Andy


------------------------------------------------------------------------
adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=116387