Thanks. I dumped the song object, but it has the same behaviours -
there's caching. 
If you rename the favourite (I added NAME), then LMS still reports the
original favourite name for a while. After a time delay (hard to
measure) the title reverts to the favourite name.

What is shown below is an intermediate condition. I thought the
Remotetrack object had the station name, which would be useful, as it's
shown different to RemotePlaylist, but after a few minutes it reverts to
the same as RemotePlaylist (i.e. favourite name). The station name is
lost after a while.

BTW I'm refactoring code from _songData.
$handler->getMetadataFor($client, $url) only has transient data.

In HTTP.pm, parseDirectHeaders doesn't have a place to store the stream
name from the stream ic[ey]-name, only to return it as "title", whereas
it is actually the stream name according to
https://cast.readme.io/docs/icy.  Whether to use this as "title" I think
is supposed to depend on whether Icy-MetaData exists or not ($metaint). 
This may be a limitation of the implementation, or a bug ? There's a
comment "Always prefer the title returned in the headers of a radio
station", which seems relevant.  An additional tag for stream name is
perhaps needed ?  The reason I'm pursuing this is that people rename
their streams occasionally, so favourite name may not be accurate or up
to date.


Code:
--------------------
    
  May 20 10:03:21 ha-server slimserver.pl[6304]: [20-05-20 10:03:21.8338] 
Slim::Plugin::xPL::Plugin::sendXplHBeatMsg (378) Song object: $VAR1 = bless( [
  May 20 10:03:21 ha-server slimserver.pl[6304]:                  
'Slim::Player::Protocols::HTTP',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                  0,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                  bless( [
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
'-94368155851592',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           1,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
'http://opml.radiotime.com/Tune.ashx?id=e19384336&sid=s111987&formats=aac,ogg,mp3&partnerId=16&serial=73efca500642bb02331e691a0198d195',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
'm3u',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
96000,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           0,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
'Hirschmilch+Radio+Chllout+NAME',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
'HIRSCHMILCH RADIO CHLLOUT NAME',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           0,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           0,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
undef,
  May 20 10:03:22 ha-server slimserver.pl[1938]: Last message '                 
   ' repeated 1 times, suppressed by syslog-ng on ha-server.lan
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           {},
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           
undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           [
  May 20 10:03:21 ha-server slimserver.pl[6304]:                             
bless( [
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      '-94368161977816',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      1,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      'http://hirschmilch.de:7000/chillout.aac',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      'aac',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      96000,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      0,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      'Hirschmilch Radio Chllout',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      'HIRSCHMILCH RADIO CHLLOUT',
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      0,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      44100,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      undef,
  May 20 10:03:22 ha-server slimserver.pl[1938]: Last message '                 
   ' repeated 1 times, suppressed by syslog-ng on ha-server.lan
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      0,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      undef,
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
      {}
  May 20 10:03:21 ha-server slimserver.pl[6304]:                                
    ], 'Slim::Schema::RemoteTrack' )
  May 20 10:03:21 ha-server slimserver.pl[6304]:                           ]
  May 20 10:03:21 ha-server slimserver.pl[6304]:                         ], 
'Slim::Schema::RemotePlaylist' ),
  May 20 10:03:21 ha-server slimserver.pl[6304]:                  
$VAR1->[2][51][0],
  
--------------------


Separate thing - I've had these "called without a client" messages for a
long time. Is there a simple way to suppress them ?

Code:
--------------------
    
  May 20 11:07:09 ha-server slimserver.pl[17903]: [20-05-20 10:39:24.7826] 
Slim::Plugin::xPL::Plugin::xplExecuteCallback (632) Warning: Called without a 
client: favorites changed
  
--------------------


------------------------------------------------------------------------
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

Reply via email to