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

adhawkins <adhawkins.akkbtb-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 17 May 2022 09:36:07 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
Ok, got the new code up and running, but for some reason the scanner
doesn't seem to be calling my plugin's 'createLibrary' function. It is
being called when the server starts, but the plugin exits at that point
as it's expecting to be called by the scanner:

> 
> return if ! main::SCANNER;
> 

If I do a scan on my 'real' LMS, I get:

> 
> Discovering files/directories: /var/spool/music/tagged   (6507 of 6507) 
> Complete  00:00:06
> Removing deleted files: /var/spool/music/tagged   (66 of 66)   Complete 
> 00:00:01
> Scanning new music files: /var/spool/music/tagged   (1 of 1)   Complete 
> 00:00:00
> Scanning changed files: /var/spool/music/tagged   (8 of 8)   Complete 
> 00:00:03
> Scanning new media files: /var/spool/music/tagged   (149 of 149)  
> Complete  00:00:02
> Discovering playlists: /var/spool/music/tagged/playlists   (32 of 32)  
> Complete  00:00:00
> Scanning new playlists: /var/spool/music/tagged/playlists   (31 of 31)  
> Complete  00:00:12
> Create Library Views   (5 of 5)   Complete  00:00:11
> Find Updated Coverart Files   (336 of 336)   Complete  00:00:01
> Pre-caching Artwork   (8 of 8)   Complete  00:00:03
> Database Optimize   (2 of 2)   Complete  00:00:03
> The server has finished scanning your media library.
> Total Time: 00:00:42 (Tuesday, May 17, 2022 / 10:12 am)
> > > > 
> > 
> > (note the 'Create Library Views' line)
> > 
> > However, on this development LMS all I get is:
> > 
> > > > > > > 
> > > Discovering files/directories: /var/spool/music/tagged/FLAC/J   (131 of
> > > 131)   Complete  00:00:00
> > > Scanning new music files: /var/spool/music/tagged/FLAC/J   (66 of 66)  
> > > Complete  00:00:01
> > > Building full text index   (7 of 7)   Complete  00:00:00
> > > Pre-caching Artwork   (34 of 34)   Complete  00:00:01
> > > Database Optimize   (2 of 2)   Complete  00:00:00
> > > The server has finished scanning your media library.
> > > Total Time: 00:00:02 (Tuesday, May 17, 2022 / 10:35 AM)
> > > > > > > 
> > 
> > Any suggestions?
> > 
> > Thanks
> > 
> > Andy


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