I have the periodic polling now working - and am getting the data back
from the radio station web site (annoyingly it is about a minute behind
- and have not checked to see if that is LMS caching, someone else
caching, or remote site being out of sync).
However, my updated metadata is not appearing on player screen.
I have taken code from elsewhere and it may well be relying on something
that I have not set-up correctly.
But ... would you expect that track info to update when this is done?
Code:
--------------------
$client->master->pluginData( metadata => $info );
Slim::Control::Request::notifyFromArray( $client, [ 'newmetadata' ] );
Slim::Control::Request::notifyFromArray( $client, [ 'playlist', 'newsong',
$info->{title} ] );
--------------------
where $info has something like this:
$info->{artist} = 'The Beatles';
$info->{title} = 'A Hard Day's Night';
and "client" is what is passed around as first parameter in lots of
calls ... (this bit I am dubious about!)
Paul Webster
http://dabdig.blogspot.com
------------------------------------------------------------------------
Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=106810
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins