Re: scanUrl not being called
bpa <bpa.a24e5b-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Triode used the following to hide iplayer:// URls in More info display -
basically it intercepts any request for the "url" item and if it was an
"iplayer://" - return "undef" to hide it. I suppose you could change
then text being returned - not sure if there would be side effects..
It was inserted in InitPlugin
Code:
--------------------
# hide iplayer:// from track info displays...
my $trackInfoUrl = Slim::Menu::TrackInfo->getInfoProvider->{'url'};
my $old = $trackInfoUrl->{'func'};
$trackInfoUrl->{'func'} = sub {
my $info = &$old(@_);
return undef if $info->{'label'} eq 'URL' && $info->{'name'} =~ /^iplayer:\/\//;
return $info;
};
--------------------
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=114599