No suggestions... so I dug around in the object data and patched the xPL
plugin as below
This adds the STATION as an additonal key (was already allowed for in
the audio.basic schema)
While there, I added album artist if different to artist to emulate the
Squeezeplay display to give more complete metadata
Simple enough and works for me, though may not follow rules!
Code:
--------------------
--- Plugin.pm.orig 2020-02-22 19:23:39.000000000 +0000
+++ Plugin.pm 2020-05-11 11:58:29.268743744 +0100
@@ -307,6 +307,8 @@
my $artist = " ";
my $trackname = " ";
my $power = "1";
+ my $station = " ";
+ my $aart;
if (defined($client->revision())) {
$power = $client->power();
@@ -326,8 +328,10 @@
my $albumObj = $track->album;
if (blessed($albumObj) && $albumObj->can('title')) {
-
$album = $albumObj->title;
+ #RF get album artist if present - for podcasts to match SQ
displays
+ my $tmpobj = $albumObj->contributor;
+ $aart = $tmpobj->name if $tmpobj->can('name');
}
my $artistObj = $track->artist;
@@ -333,11 +337,15 @@
my $artistObj = $track->artist;
if (blessed($artistObj) && $artistObj->can('name')) {
-
$artist = $artistObj->name;
}
+
+ # RF addition
+ $station = $track->title if $track->can('title') &&
$track->remote;
}
+ $artist = "$aart, $artist" if $aart && $artist ne $aart; # emulate
SQplayer GUI
+
$trackname = Slim::Music::Info::getCurrentTitle($client,
Slim::Player::Playlist::url($client));
# if the song name has the track number at the beginning, remove it
@@ -353,6 +361,7 @@
if (defined($_[1])) {
$msg = "status=$playmode";
$msg = "$msg\nARTIST=$artist\nALBUM=$album\nTRACK=$trackname\nPOWER=$power";
+ $msg = "$msg\nSTATION=$station"; # RF addition from basic schema
- why not?
sendxplmsg("xpl-stat", "*","audio.basic", $msg, $clientName);
--------------------
------------------------------------------------------------------------
keynet's Profile: http://forums.slimdevices.com/member.php?userid=68229
View this thread: http://forums.slimdevices.com/showthread.php?t=111936
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter