The following change make sure that the context menu always looks at the
playlist URL and not the URL that is playing - this gets rid of the
timing issue which can be seen at the moment.

In the file Slim/Plugin./InternRadio/Tunein.pm  - new lines in red

Code:
--------------------
    
  sub trackInfoHandler {
        my ( $client, $url, $track ) = @_;
        
        my $item;
        
        my $sc = $client->master->controller;
        my $streaming = $sc->streamingSong;
  
        if ($sc->streamingSong && ($streaming->track->url ne $url)) {
                $url = $streaming->track->url
        }
  
        
        if ( $url =~ m{^http://opml\.(?:radiotime|tunein)\.com} ) {
                $item = {
                        name => cstring($client, 'PLUGIN_RADIOTIME_OPTIONS'),
                        url  => __PACKAGE__->trackInfoURL( $client, $url ),
                };
        }
        return $item;
  }
  
--------------------


The change does not fix some of the other odd issues I have with Tune-in
(e.g. display incorrect URL as playing) .  I'll look some more so that
maybe a few changes are done at once.


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=110714

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

Reply via email to