Re: scanUrl not being called

Paul Webster <Paul.Webster.a2cvbz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
bpa wrote: 
> 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;
  > };
  > 
--------------------
> > 

My reading of that was that I would need my protocol handler to be in
place so that I would get called ... but when I have my PH I can't play
the HLS streams.
I'll take another look though.
(your PM space full ... probably as result of my most recent)



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc),
planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla
finland, abc australia, cbc/radio-canada and rte ireland
------------------------------------------------------------------------
Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=114599
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.