Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-28 Thread Paul Webster


bonze wrote: 
> They also still maintain their RadioDNS info:
> 

It is useful but not for Song Now Playing information.



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

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-28 Thread bonze


They also still maintain their RadioDNS info:

http://epg.musicradio.com/radiodns/epg/XSI.xml
http://epg.musicradio.com/radiodns/spi/3.1/SI.xml



LMS Version: 7.9
TranquilPC T2-WHS-A3 - WHS 2011
2x Touch, 3x SB3

bonze's Profile: http://forums.slimdevices.com/member.php?userid=6150
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread florca


expectingtofly wrote: 
> Its a unique to each request, based on the time of the request (and the
> user) (it looks something like this
> hdauth=userid:epochtime:somethinggenerated) .  So, we really would need
> to ask them if we could do it, and we would have to assume they wouldn't
> allow it on an open system like LMS

Looks like someone has managed to untangle it - quite an old post so may
be further mangled, but the author seems willing to share more info.
Summary 'here'
(https://jonathan.rawle.org/2016/11/06/classic-fm-hd-stream/)



Odroid HC1 / Armbian Stretch LMS & LocalPlayer
4x Slim Devices SB3 (White)
1x Boom, 1x Radio
2x Joggler + Squeezeplay / Squeezelite + Topping TP30

florca's Profile: http://forums.slimdevices.com/member.php?userid=7486
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread psketch


expectingtofly wrote: 
> I believe there is an MP3 stream that is 128 kbps.  It is the AAC stream
> that their web site/api points to,  that's the one that is 48 kbps (or
> 192kbps as a "HD" stream)

Yes, you can see 128K stream at https://icecast.thisisdax.com/, but it's
not 192k :-)  Also, quite a few of other global player streams only seem
to have 48K.



psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread expectingtofly


Paul Webster wrote: 
> If people are listening to ClassicFM via their Squeezebox today then
> they are, presumably, getting the relatively low audio quality streams.
> 

I believe there is an MP3 stream that is 128 kbps.  It is the AAC stream
that their web site/api points to,  that's the one that is 48 kbps (or
192kbps as a "HD" stream)



EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *BBC Sounds Wiki* :
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN

expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread Paul Webster


If people are listening to ClassicFM via their Squeezebox today then
they are, presumably, getting the relatively low audio quality streams.

It is a shame that we do not have a way to measure the usage ... my
guess is TuneIn knows and maybe there are stats on mysqueezebox.com that
could show popularity of stations/streams launched via that route.

Maybe there is scope for a community plugin to generate anonymous and
aggregated stats ... but storage somewhere would probably be an issue.



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip 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=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread expectingtofly


psketch wrote: 
> I guess to do it properly, we'd be dependent on them providing an API so
> we could sign in - they then get the data they want from us as users,
> and we get the HD stream without having to use their app.  Less
> advertising revenue for them though I guess is the problem with them
> wanted to do that  I assume the token is generated through the
> signin process, so is likely to be unique to each session, or is it
> unique to each user perhaps?

Its a unique to each request, based on the time of the request (and the
user) (it looks something like this
hdauth=userid:epochtime:somethinggenerated) .  So, we really would need
to ask them if we could do it, and we would have to assume they wouldn't
allow it on an open system like LMS



EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *BBC Sounds Wiki* :
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN

expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread psketch


expectingtofly wrote: 
> I've just got around to looking at this.
> 
> To write a plugin is quite straight forward (to replicate whats
> available on the web site).  Although, as @paulwebster mentioned, the
> meta data provision uses web sockets, so the meta data would be limited
> The problem is they only make available very low bitrate streams (48
> kbps) available via this unauthenticated method, which particularly for
> classic fm, makes the whole exercise completely pointless.
> 
> They do make what they call "HD streams" available through their app of
> 192 kbps (I had a look at their android app) if you sign in.   By a bit
> of proxy sniffing I can see that these "hd" streams are open  (e.g 
> http://ice-the.musicradio.com/ClassicFMHD ) but are protected by
> requiring the passing of a "hdauth" token as part of the URL.  Which, by
> the looks of it, is probably possible to reverse engineer, but they
> obviously do not want anyone to do that as it is all very well hidden.

I guess to do it properly, we'd be dependent on them providing an API so
we could sign in - they then get the data they want from us as users,
and we get the HD stream without having to use their app.  Less
advertising revenue for them though I guess is the problem with them
wanted to do that  I assume the token is generated through the
signin process, so is likely to be unique to each session, or is it
unique to each user perhaps?



psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread Jaca


expectingtofly wrote: 
>   Which, by the looks of it, is probably possible to reverse engineer,
> but they obviously do not want anyone to do that as it is all very well
> hidden.

[emoji848] no, they will never know.. Go for it ;p
Well I'm not going to tell them.. I promise [emoji23]



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-03-25 Thread expectingtofly


psketch wrote: 
> Now that @expectingtofly is spoiling us with lots of great addins, I
> wondered if anyone had had a look at the feasibility of a plugin for
> GlobalPlayer.  For me, this would be for ClassicFM mostly, but there are
> loads of stations in their stable now.  The main advantage vs. a stream
> is they now claim to offer HD audio through their app if you sign up for
> an account.
> 
> No idea of course if there's an API available of course, but if they're
> restricting it to people signed in with an account, I guess there's
> reason for them to want to enable as broad access as possible - more
> ability to profile us vs. if we just listen to a stream.

I've just got around to looking at this.

To write a plugin is quite straight forward (to replicate whats
available on the web site).  Although, as @paulwebster mentioned, the
meta data provision uses web sockets, so the meta data would be limited
The problem is they only make available very low bitrate streams (48
kbps) available via this unauthenticated method, which particularly for
classic fm, makes the whole exercise completely pointless.

They do make what they call "HD streams" available through their app of
192 kbps (I had a look at their android app) if you sign in.   By a bit
of proxy sniffing I can see that these "hd" streams are open  (e.g 
http://media-ssl.musicradio.com/ClassicFMHD ) but are protected by
requiring the passing of a "hdauth" token as part of the URL.  Which, by
the looks of it, is probably possible to reverse engineer, but they
obviously do not want anyone to do that as it is all very well hidden.



EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *BBC Sounds Wiki* :
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN

expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-22 Thread bpa


ralphy wrote: 
> I kept the VM I used to build the SSL updates for windows.
> If you decide to move forward with the project, I will try building an
> AnyEvent 7.x perl package.
I'll let you know.  Building the library will only be needed if testing
with 7.* on Linux goes OK.



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

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-22 Thread ralphy


I kept the VM I used to build the SSL updates for windows.
If you decide to move forward with the project, I will try building an
AnyEvent 7.x perl package.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread bpa


psketch wrote: 
>  but you could have an optional installable extension for Linux that
> overwrote the 5.x to add WS support.  

Can't just overwrite some AnyEvent in LMS by 7.* for WS has ANyEvent is
the key to LMS scheduled and single threadedness - it is used by LMS for
all I/O - DNS, HTTP etc. 

The alternative would be to see if the WS stuff can be made to work
under 5.* but IIRC it is unlikley.



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

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread psketch


bpa wrote: 
> I see the approach to be using LMS on Linux to test an update to
> AnyEvent 7.*.  The AnyEvent 7.* module is easily built for Linux but
> changes to some LMS core modules are likely.
> 
> Upgrading AnyEvent to 7.* on Linux should be feasible as I think LMS use
> of AnyEvent facilities is limited and this is a upgrade not a
> reimplementation.
> 
> The main difficulty will be building for Windows - if a new AnyEvent
> module built then I would hope there would be no major issues as they
> should have been ironed out testing on Linux.

Yes - sounds like a plan.  I guess worse case would be that Windows was
a non-starter for some reason, but you could have an optional
installable extension for Linux that overwrote the 5.x to add WS
support.  Anyhow, happy to play around with anything on PCP or raspbian
(my day to day is pcp, test is raspbian on Pi)



psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread bpa


psketch wrote: 
> Ah yes  - I remember some other comments on Windows problems.  I'm
> always happy to help testing and trying things, but my knowledge on
> building things on Linux is limited.  Although I run all of my LSM and
> players on PCP (apart from a transporter and boom), my technical
> knowledge is Windows rather than Linux.
I see the approach to be using LMS on Linux to test an update to
AnyEvent 7.*.  The AnyEvent 7.* module is easily built for Linux but
changes to some LMS core modules are likely.

Upgrading AnyEvent to 7.* on Linux should be feasible as I think LMS use
of AnyEvent facilities is limited and this is a upgrade not a
reimplementation.

The main difficulty will be building for Windows - if a new AnyEvent
module built then I would hope there would be no major issues as they
should have been ironed out testing on Linux.



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

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread psketch


bpa wrote: 
> Looking at updating AnyEvent is on my (long) todo list as it would be
> useful for another idea I have.
> 
> IIRC Beside the "whether it works ", Michael had more basic concerns
> because of problems in building any library module for Perl for Windows
> (stuck at 5.14 as no longer supported by vendor).  Around same time
> there were problem update SSL libraries but Ralphy managed to build new
> SSL libraries which meant LMS got reasonable "https" support. Summary -
> i feel AnyEvent module could be updated & rebuilt - then "does it work"
> can be tested. Just time is needed and unlikely to be Michael's as there
> is no pressing need for it.  The simplest approach would be to test 7.*
> on Linux and if OK - try to build for Windows.

Ah yes  - I remember some other comments on Windows problems.  I'm
always happy to help testing and trying things, but my knowledge on
building things on Linux is limited.  Although I run all of my LSM and
players on PCP (apart from a transporter and boom), my technical
knowledge is Windows rather than Linux.



psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread bpa


psketch wrote: 
> Hmm ; that's a shame.  Global claim to be the largest radio group in
> Europe now with 25 million people listening in the UK each week, so, on
> the very large assumption that all of the globalplayer stations use the
> same approach, it would be a really nice addition, and now the HD
> streaming thrown into the mix.
> 
> Did Michael comment further on the need for backward compatibility on
> AnyEvent?  From that thread, it looked like he was saying it would need
> backward compat., which makes perfect sense, vs. there was some kind of
> known issue with 7.x vs. 5.x.  Was it more "we don't know if it works"
> vs. "there's known problems".  If it's the former, is it worth a
> conversation with Michael to see if upgrading AnyEvent is an option, as
> that seems to have the widest benefit, vs. writing some kind of
> standalone proxy.

Looking at updating AnyEvent is on my (long) todo list as it would be
useful for another idea I have.

IIRC Beside the "whether it works ", Michael had more basic concerns
because of problems in building any library module for Perl for Windows
(stuck as 5.14 as longer supported by vendor).  Around same time there
were problem update SSL libraries but Ralphy managed to build new SSL
libraries which meant LMS got reasonable "https" support. Summary - i
feel AnyEvent module could be updated & rebuilt - then "does it work"
can be tested. Just time is needed and unlikely to be Michael's as there
is no pressing need for it.  The simplest approach would be to test 7.*
on Linux and if OK - try to build for Windows.



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

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread psketch


Paul Webster wrote: 
> There is an undocumented API ... but using it is tricky because it would
> require the use of WebSockets ... which is not supported by LMS.
> So I think it would mean writing some standalone stuff and then plugging
> it in somehow.
> 
> https://forums.slimdevices.com/showthread.php?107186-Help-Implementing-websockets-in-a-plugin=995299=1#post995299

Hmm ; that's a shame.  Global claim to be the largest radio group in
Europe now with 25 million people listening in the UK each week, so, on
the very large assumption that all of the globalplayer stations use the
same approach, it would be a really nice addition, and now the HD
streaming thrown into the mix.

Did Michael comment further on the need for backward compatibility on
AnyEvent?  From that thread, it looked like he was saying it would need
backward compat., which makes perfect sense, vs. there was some kind of
known issue with 7.x vs. 5.x.  Was it more "we don't know if it works"
vs. "there's known problems".  If it's the former, is it worth a
conversation with Michael to see if upgrading AnyEvent is an option, as
that seems to have the widest benefit, vs. writing some kind of
standalone proxy.



psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread Paul Webster


There is an undocumented API ... but using it is tricky because it would
require the use of WebSockets ... which is not supported by LMS.
So I think it would mean writing some standalone stuff and then plugging
it in somehow.

https://forums.slimdevices.com/showthread.php?107186-Help-Implementing-websockets-in-a-plugin=995299=1#post995299



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip 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=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] GlobalPlayer (UK) Plugin - ClassicFM etc.?

2021-02-21 Thread psketch


Now that @expectingtofly is spoiling us with lots of great addins, I
wondered if anyone had had a look at the feasibility of a plugin for
GlobalPlayer.  For me, this would be for ClassicFM mostly, but there are
loads of stations in their stable now.  The main advantage vs. a stream
is they now claim to offer HD audio through their app if you sign up for
an account.

No idea of course if there's an API available of course, but if they're
restricting it to people signed in with an account, I guess there's
reason for them to want to enable as broad access as possible - more
ability to profile us vs. if we just listen to a stream.



psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=114000

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins