Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: NPR Live stream

  1. #1
    Member
    Join Date
    Aug 2014
    Location
    UK
    Posts
    39

    NPR Live stream

    Hi - I wonder if anyone can assist with a problem I have. Recently my National Public Radio favourite stopped working. I searched for the new live stream and added (TuneIn) and it failed to play. It does play on the PC. So I got the link from the NPR site, but the same problem. I am using a Raspberry Pi, with SSL support. The error is as shown below - any ideas?


    [17-03-04 11:57:53.8323] main::init (384) Starting Logitech Media Server (v7.9.0, 1461959934, Fri Apr 29 20:36:57 UTC 2016) perl 5.014002 - arm-linux-gnueabihf-thread-multi-64int


    [17-03-05 08:34:42.1361] Slim::Utils::Scanner::Remote::__ANON__ (193) Error: Can't connect to remote server to retrieve playlist for, https://nprdmp-live01-mp3.akacast.ak...mp_live01_mp3: Error reading headers: Bad response status line: 'ICY 200 OK' at /usr/share/squeezeboxserver/CPAN/Net/HTTP/Methods.pm line 311.

    https://www.npr.org//streams//mp3//nprlive24.m3u

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,325
    By default it is using https which is not natively support by Sb player. A workaround might be to use the actual stream in the m3u without https but this may be time limited. Otherwise install latest 7.9 maker sure install SSL.

    http://nprdmp-live01-mp3.akacast.aka...dmp_live01_mp3

    edit:
    This may be a new variation of the podcast https issue. Using very Latest 7.9 is important
    Last edited by bpa; 2017-03-05 at 02:26.

  3. #3
    Member
    Join Date
    Aug 2014
    Location
    UK
    Posts
    39
    I have no problem with the https links for the NPR podcasts since I installed SSL support about a month ago. I've now downloaded and install the 7.9 nightly dated this morning - once installed LMS says:

    [17-03-05 12:12:45.8151] main::init (388) Starting Logitech Media Server (v7.9.0, 1487582706, Mon Feb 20 09:44:51 UTC 2017) perl 5.014002 - arm-linux-gnueabihf-thread-multi-64int

    But gives the same error:
    [17-03-05 12:13:00.1827] Slim::Utils::Scanner::Remote::__ANON__ (193) Error: Can't connect to remote server to retrieve playlist for, https://nprdmp-live01-mp3.akacast.ak...mp_live01_mp3: Error reading headers: Bad response status line: 'ICY 200 OK' at /usr/share/squeezeboxserver/CPAN/Net/HTTP/Methods.pm line 311.

    However, removing the (S) works - http://nprdmp-live01-mp3.akacast.aka...dmp_live01_mp3

    So for now I'll use that and find one of the partner stations not using https. BPA is this something that you think is likely to be resolved or is it a whole world of pain! Thanks.
    CPAN/net ==>
    drwxr-xr-x 2 root root 4096 Mar 5 11:28 HTTP
    -rw-r--r-- 1 root root 8797 Feb 16 13:45 HTTP.pm
    -rw-r--r-- 1 root root 1110 Feb 16 13:45 HTTPS.pm
    drwxr-xr-x 2 root root 4096 Mar 5 11:28 Ifconfig
    drwxr-xr-x 4 root root 4096 Mar 5 11:28 UPnP
    -rwxr-xr-x 1 root root 2660 Feb 16 13:45 UPnP.pm
    Last edited by Dean_Bayliss; 2017-03-05 at 05:27. Reason: add dir text

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,325
    Quote Originally Posted by Dean_Bayliss View Post
    BPA is this something that you think is likely to be resolved or is it a whole world of pain! Thanks.
    This https pain is all due to Apple unilaterally saying if station donn't use HTTPS by Jan 2017 then they will not play on Apple stuff - Apple then in Jan 2017 changes their mind and I think there is no firm deadline.

    Personally I think users should push back on the stations and complain. There are plenty of internet radio which don't support https and which will not be affected by using just http as the security issue is low for these devices (DDOS is a more likely issue) .

    All LMS player cannot handle https so LMS will have to handle the proxying. Michael is the guy who has been tackling https for podcasts and will need to look in more depth.

  5. #5
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,779

    NPR Live stream

    > But gives the same error:
    > [17-03-05 12:13:00.1827] Slim::Utils::Scanner::Remote::__ANON__ (193)
    > Error: Can't connect to remote server to retrieve playlist for,
    > https://nprdmp-live01-mp3.akacast.ak...mp_live01_mp3:
    > Error reading headers: Bad response status line: '*ICY 200 OK' at
    > /usr/share/squeezeboxserver/CPAN/Net/HTTP/Methods.pm line 311*.


    Where did you get that URL from?

    --

    Michael

  6. #6
    Member
    Join Date
    Aug 2014
    Location
    UK
    Posts
    39
    Hi

    CASE1
    This NPR page provides MP3 and AAC streams: http://www.npr.org/2016/04/05/472557...program-stream and I copied the link for MP3 https://www.npr.org/streams/mp3/nprlive24.m3u - Both the MP3 and AAC https links play in VLC player. LMS says:

    [17-03-06 17:59:34.3235] Slim::Utils::Scanner::Remote::__ANON__ (193) Error: Can't connect to remote server to retrieve playlist for, https://nprdmp-live01-mp3.akacast.ak...mp_live01_mp3: Error reading headers: Bad response status line: 'ICY 200 OK' at /usr/share/squeezeboxserver/CPAN/Net/HTTP/Methods.pm line 311.

    CASE2
    When that didn't work on the LMS/Radio I did a search and found NPR, saved and I've extracted here from favourite.opml
    http://opml.radiotime.com/Tune.ashxi...b922f64bde17a5
    On the PC if you look in the Tune.m3u you get http://www.npr.org/streams/mp3/nprlive24.pls - That plays in VLC but won't play on LMS/Radio. The LMS error is

    [17-03-06 18:03:03.9836] Slim::Utils::Scanner::Remote::__ANON__ (193) Error: Can't connect to remote server to retrieve playlist for, https://nprdmp-live01-mp3.akacast.ak...mp_live01_mp3: Error reading headers: Bad response status line: 'ICY 200 OK' at /usr/share/squeezeboxserver/CPAN/Net/HTTP/Methods.pm line 311.
    But the –more- info says the link is not the https one … its is the radiotime one and says no items found in the playlist. I think this is a different problem

    Finally
    If you try to add the favourite via mysqueezebox url = http://www.npr.org/streams/mp3/nprlive24.pls
    www.mysqueezebox.com says:
    Warning: This stream returned an unknown content type (application/pls+xml). It may not play properly on your player.
    Same LMS error showing https link – but this time the radio gives the ICY200 error and the –more- info shows the stored http link, not the previous https one!

    So it looks like the LMS is reporting the same link in every case – which is not correct – but in any case the https and nprlive.pls links don’t play on LMS but do in VLC. Sorry lots of info – hope it helps!

  7. #7
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,779

    NPR Live stream

    > Error reading headers: Bad response status line: 'ICY 200 OK' at

    Now that's interesting: the httpS url would indeed return a non-HTTP
    response "ICY 200 OK", whereas the http (without S) url returns
    "HTTP/1.1 200 OK" - as expected.

    Googling around a bit there are references to different shoutcast
    configurations. It's supposed to be something the streaming service can
    configure. Maybe you can ask them to look into this? I'll do some
    digging on our end...

    --

    Michael

  8. #8
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,779

    NPR Live stream

    I think I've found a workaround for this issue and added it to LMS 7.9.
    Builds should be available for download shortly. Would be great if
    somebody could confirm.

    > If you try to add the favourite via mysqueezebox url =


    Are you running your devices from mysb.com directly, no LMS involved?
    This would have to wait a bit longer as I'd like to see how above
    workaround behaves in LMS before rolling it out to mysb.com

    In the meantime please let NPR know they should change their
    configuration to stream HTTPS rather than ICY (as they do for plain text
    HTTP).

    --

    Michael

  9. #9
    Member
    Join Date
    Aug 2014
    Location
    UK
    Posts
    39
    Using Logitech Media Server (v7.9.0, 1488878280, Tue Mar 7 09:39:04 UTC 2017) on a RaspberryPi

    The https stream worked straight away and the TuneIn stream works and the m3u link I extracted and placed on mySqueezebox (as favourite) also now works - so everything works! Also just for info the radios only operate through LMS - I added the favourite through mySqueezebox just to assist with info for debugging.

    Many thanks!!

  10. #10
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,779

    NPR Live stream

    > The https stream worked straight away and the TuneIn stream works and
    > the m3u link I extracted and placed on mySqueezebox (as favourite) also
    > now works - so everything works!


    Excellent! Thanks for the report and testing!

    --

    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •