Re: [slim] Bad information displayed - Spotty plugin
Excellent work sir . Should not the author of the home automation plugin be notified ? He will probably accept your changes in to the plugin. Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub. Bedroom/Office: Boom Kitchen: Touch + powered Fostex PM0.4 Misc use: Radio (with battery) iPad1 with iPengHD & SqueezePad (spares Touch, SB3, reciever ,controller ) server HP proliant micro server N36L with ClearOS Linux http://people.xiph.org/~xiphmont/demo/neil-young.html Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143 View this thread: http://forums.slimdevices.com/showthread.php?t=108743 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] Bad information displayed - Spotty plugin
Hello Michael, I do really thank you very much for your help It is working well now :) !! [image: https://i.imgur.com/lOVBn5R.png] LMS Side : [image: https://i.imgur.com/d2BZbnk.png] I will ask for the modification in the plugin concerned by this point. Really amazing !!! Thanks again I will continue to enjoy using your plugin for a long long long time :D Do you want me to rename the title of the post ? Really thank you : TaGGoU91's Profile: http://forums.slimdevices.com/member.php?userid=67898 View this thread: http://forums.slimdevices.com/showthread.php?t=108743 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss
Re: [slim] Bad information displayed - Spotty plugin
I would suggest you use the "status" query (as documented in the 'CLI documentation' (http://htmlpreview.github.io/?https://raw.githubusercontent.com/Logitech/slimserver/public/7.9/HTML/EN/html/docs/cli-api.html) rather than to try to grab the information from the track object yourself. That's what all the other UIs do, and it does the difficult part for you. Code: # request the current player's status. Starting with the current track ('-'), grab information for one single track: my $r = $client->execute(['status', '-', 1, 'tags:aKl']); # playlist_loop of the response is a list of track information hashes. We only have requested on - grab it: my $track = $r->getResult('playlist_loop')->[0]; # extract the nice pieces of information from the $track hash ref: my $artist = $track->{artist}; my $album = $track->{album}; my $title = $track->{title}; Michael http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo mherger's Profile: http://forums.slimdevices.com/member.php?userid=50 View this thread: http://forums.slimdevices.com/showthread.php?t=108743 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss