bpa wrote: 
> 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/InternetRadio/Tunein.pm  - new lines in red

Could you please try the following instead:


Code:
--------------------
    diff --git a/Slim/Web/Pages/Trackinfo.pm b/Slim/Web/Pages/Trackinfo.pm
  index dcb8ee185..092a9312f 100644
  --- a/Slim/Web/Pages/Trackinfo.pm
  +++ b/Slim/Web/Pages/Trackinfo.pm
  @@ -26,12 +26,20 @@ sub trackinfo {
  
  my $id    = $params->{sess} || $params->{item};
  my $track = Slim::Schema->find( Track => $id );
  +       my $url   = $track->url;
  
  -       my $menu = Slim::Menu::TrackInfo->menu( $client, $track->url, $track 
) if $track;
  +       my $controller = $client->master->controller;
  +       my $song = $controller->streamingSong;
  +
  +       if ($song && ($song->track->url ne $url)) {
  +               $url = $song->track->url
  +       }
  +
  +       my $menu = Slim::Menu::TrackInfo->menu( $client, $url, $track ) if 
$track;
  
  # some additional parameters for the nice favorites button at the top
  $params->{isFavorite} = defined 
Slim::Utils::Favorites->new($client)->findUrl($track->url);
  -       $params->{itemUrl}    = $track->url;
  +       $params->{itemUrl}    = $url;
  
  # Pass-through track ID as sess param
  $params->{sess} = $id;
  
--------------------


That's where that page is being created for the web UI.



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

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

Reply via email to