kipeta wrote: 
> 
> The last line was my guess how to get it work and it actually did but
> only if scanned with "Look for new and changed audio files". Could you
> help me? How should I implement it?
> 
Look at the iTunes plugin.

First install.xml:
https://github.com/Logitech/slimserver/blob/public/7.8/Slim/Plugin/iTunes/install.xml
The following line is important:
<importmodule>Slim::Plugin::iTunes::Importer</importmodule>
This is what cause it to load Slim::Plugin::iTunes::Importer in the
external scanner. In your case you would of course need an importmodule
that points to your plugin.

Then Importer.pm (which the above entry points to):
https://github.com/Logitech/slimserver/blob/public/7.8/Slim/Plugin/iTunes/Importer.pm

Its initPlugin method will be called by the external scanner.
When you use new/changed scanner it will instead load any scanning
modules you have registered in the Plugin.pm file.

I'm not sure if it maybe might be enough to add the
"$Slim::Formats::tagClasses{'dsd'} = 'Plugins::PlayDSD::DSD';" entry in
the initPlugin method in your Importer.pm file. If I remember correctly
it's loaded initially by the external scanner, so possible it might be
enough to have a very simple initPlugin which just register your tag
class.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets (both free and commercial)'
(http://wiki.slimdevices.com/index.php/User:Erland). 
If you like to encourage future presence on this forum and/or third
party plugin/applet development, 'consider purchasing some plugins'
(http://license.isaksson.info))
You may also want to try my Android apps 'Squeeze Display'
(https://play.google.com/store/apps/details?id=info.isaksson.squeezedisplay)
and 'RSS Photo Show'
(https://play.google.com/store/apps/details?id=info.isaksson.rssphotoshow)
*Interested in the future of music streaming ? 'ickStream -  A world of
music at your fingertips'
(http://forums.slimdevices.com/showthread.php?98467-Pre-Announcement-ickStream&p=743516)*.
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=99132

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to