Re: scanUrl not being called
bpa <bpa.a2dirb-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Paul Webster wrote:
> I have no issue with the myplugin:// URLs being shown.
> It is what they hide that I wanted to be hidden.
>
> They are "relatively" stable and I could make them even more stable.
> A change in the underlying stream URL would (broadly at least) be hidden
> from the user and would allow Favourites to be set and used (which I
> have done).
>
> Edit: My intention is to use URL-encoded station name for the PH name
> but that can come later. It does not make a difference to getting the
> thing to play.
Looking at the problem - the subclassing of https by plugin means your
plugin is given the m3u8 https back after it has asked LMS to play it
and PlayLS can scanned it.
If your plugin does not subclass https - then LMS can't seem to find the
PlayHLS handler - so there is some underlying issue in the way the HLS
URL is being asked to play that is different form say Tune-in.
The solution may require a LMS change but I'll continue to look to find
the problem.
As a backup, I thought there could be a different LMS way to hide the
info under control of plugin.
As a proof of concept - I change the xmlbrowser_details.html file (I
couldn't remember template syntax fully so it is crude) - I added a test
for '#HIDEME' at end of URL.
so any URL with '#HIDEME' at end will not be displayed. The "#" at end
of an URL is an anchor and ignored in URL processing.
The plugin can add '#HIDEME' to any URL it wants to suppress.
Code:
--------------------
[% IF streaminfo.item.url %]
[% IF !streaminfo.item.url.search('#HIDEME$') %]
[% item = BLOCK %]<a href="[% streaminfo.item.url | html %]" target="_blank">[% streaminfo.item.url | html %]</a>[% END %]
[% PROCESS songInfoItem title = "URL" %]
[% END %]
[% END %]
--------------------
Material would need a change.
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=114599