Thanks for the info, Michael. I guess you already guessed that this is
beyond what I would consider "easy" ;) But I'm sure you would have told
me if you knew about any existing plugin that would be able to do what I
want.

I wouldn't know of one - which doesn't mean it doesn't exist somewhere.

Would it be possible to write a plugin that reads the attributes you
mentioned and hooks them into the track context information (amongst the
info about length, bitrate, date modified etc), or into a submenu like
"More info" (similar to "View Tags")? If so, what would be the starting
point for writing such a plugin? Do you know of an example that does a
similar thing to build upon?

Many plugins do register a "track information handler". Eg. MusicIP would allow you to start a mix based on the currently playing track:

https://github.com/Logitech/slimserver/blob/public/7.9/Slim/Plugin/MusicMagic/Plugin.pm#L235

Such a handler is called with the $client on which it's been used, the currently playing track's URL, and a track object, which would give you access to those properties I mentioned in my previous mail. A very simple example which would show the track number in such a menu would be:

https://github.com/Logitech/slimserver/blob/public/7.9/Slim/Menu/TrackInfo.pm#L862


--

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

Reply via email to