Bug 4092 - Multiple radio stations in a playlist don't work
: Multiple radio stations in a playlist don't work
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Playlists
: 6.5b2
: PC Debian Linux
: P2 normal with 2 votes (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on: 7520
Blocks: 4770
  Show dependency treegraph
 
Reported: 2006-09-12 07:30 UTC by Ben Sandee
Modified: 2009-07-31 10:13 UTC (History)
7 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Sandee 2006-09-12 07:30:44 UTC
This is on SliMP3 hardware and 6.5b2+.  It has been occuring for at least a month for me on 6.5 branch.

The following URL:  http://www.radioparadise.com/musiclinks/rp_128.m3u

Works fine when supplied to the web interface tune-in form and after doing this my saved playlists also work (for at least awhile).  If I try to play my saved playlist FIRST then the stream won't play (I briefly see an error message on the Slimp3 display).

Here are the playlists:

tsandee@cedar:~/Radio$ cat 128K\ RadioParadise.m3u
http://www.radioparadise.com/musiclinks/rp_128.m3u

Similarly, saving the contents of the URL to a file first doesn't work:

tsandee@cedar:~/Radio$ cat rp_128.m3u
http://64.236.34.97:80/stream/1049
http://64.236.34.4:80/stream/1049
http://64.236.34.196:80/stream/1049

Here's the error after enabling d_remotestream and d_playlist.

2006-09-12 09:24:12.6550 Reshuffling, current song index: -1, preserve song? no
2006-09-12 09:24:12.6614 Opening connection to http://www.radioparadise.com/musiclinks/rp_128.m3u: [www.radioparadise.com on port 80 with path /musiclinks/rp_128.m3u with timeout 5]
2006-09-12 09:24:12.7588 Request:
GET /musiclinks/rp_128.m3u HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Linux; N; Debian; i686-linux; EN; iso-8859-1) SlimServer/6.5b2/9626
Icy-MetaData: 1
Connection: close
Host: www.radioparadise.com


2006-09-12 09:24:12.8615 Response: HTTP/1.1 200 OK

2006-09-12 09:24:12.8630 header-rs: Date: Tue, 12 Sep 2006 14:24:10 GMT
2006-09-12 09:24:12.8633 header-rs: Server: Apache/2.0.54 (Fedora)
2006-09-12 09:24:12.8635 header-rs: Last-Modified: Wed, 23 Aug 2006 17:22:39 GMT
2006-09-12 09:24:12.8636 header-rs: ETag: "363027c-69-970a35c0"
2006-09-12 09:24:12.8637 header-rs: Accept-Ranges: bytes
2006-09-12 09:24:12.8638 header-rs: Content-Length: 105
2006-09-12 09:24:12.8639 header-rs: Connection: close
2006-09-12 09:24:12.8641 header-rs: Content-Type: audio/x-mpegurl
2006-09-12 09:24:12.8704 opened stream!
2006-09-12 09:24:12.8877 Slim::Player::Protocols::HTTP - in DESTROY
2006-09-12 09:24:12.8880 Slim::Player::Protocols::HTTP About to close socket to: [http://www.radioparadise.com/musiclinks/rp_128.m3u]
2006-09-12 09:24:12.8884 Reshuffling, current song index: 0, preserve song? yes
2006-09-12 09:24:12.8932 Opening connection to http://64.236.34.196/stream/1048: [64.236.34.196 on port 80 with path /stream/1048 with timeout 5]
2006-09-12 09:24:12.9320 Request:
GET /stream/1048 HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Linux; N; Debian; i686-linux; EN; iso-8859-1) SlimServer/6.5b2/9626
Icy-MetaData: 1
Connection: close
Host: 64.236.34.196


2006-09-12 09:24:12.9748 Response: ICY 200 OK

2006-09-12 09:24:12.9771 header-rs: icy-notice1: <BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
2006-09-12 09:24:12.9774 header-rs: icy-notice2: SHOUTcast Distributed Network Audio Server/SolarisSparc v1.9.5<BR>
2006-09-12 09:24:12.9775 header-rs: icy-name: Radio Paradise - DJ-mixed modern & classic rock, world, electronica & more - info: radioparadise.com
2006-09-12 09:24:12.9778 header-rs: icy-genre: eclectic rock
2006-09-12 09:24:12.9780 header-rs: icy-url: http://www.radioparadise.com
2006-09-12 09:24:12.9781 header-rs: icy-pub: 1
2006-09-12 09:24:12.9783 header-rs: icy-metaint: 8192
2006-09-12 09:24:12.9784 header-rs: icy-br: 128
2006-09-12 09:24:12.9807 parseHeaders: Bitrate for http://64.236.34.196/stream/1048 set to 128000
2006-09-12 09:24:12.9810 header-rs: icy-irc: #shoutcast
2006-09-12 09:24:12.9812 header-rs: icy-icq: 0
2006-09-12 09:24:12.9813 header-rs: icy-aim: N/A
2006-09-12 09:24:12.9855 opened stream!
2006-09-12 09:24:12.9864 Slim::Player::Protocols::HTTP - in DESTROY
2006-09-12 09:24:12.9866 Slim::Player::Protocols::HTTP About to close socket to: [http://64.236.34.196/stream/1048]
2006-09-12 09:24:12.9958 Opening connection to http://64.236.34.4/stream/1048: [64.236.34.4 on port 80 with path /stream/1048 with timeout 5]
2006-09-12 09:24:13.0428 Request:
GET /stream/1048 HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Linux; N; Debian; i686-linux; EN; iso-8859-1) SlimServer/6.5b2/9626
Icy-MetaData: 1
Connection: close
Host: 64.236.34.4


2006-09-12 09:24:13.0937 Response: ICY 404 Resource Not Found

2006-09-12 09:24:13.0940 Invalid response code (404) from remote stream http://64.236.34.4/stream/1048
2006-09-12 09:24:13.0944 Slim::Player::Protocols::HTTP - in DESTROY
2006-09-12 09:24:13.0946 Slim::Player::Protocols::HTTP About to close socket to: [http://64.236.34.4/stream/1048]
2006-09-12 09:24:13.1032 Opening connection to http://64.236.34.97/stream/1048: [64.236.34.97 on port 80 with path /stream/1048 with timeout 5]
2006-09-12 09:24:13.1649 Request:
GET /stream/1048 HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Linux; N; Debian; i686-linux; EN; iso-8859-1) SlimServer/6.5b2/9626
Icy-MetaData: 1
Connection: close
Host: 64.236.34.97


2006-09-12 09:24:13.2299 Response: ICY 200 OK

2006-09-12 09:24:13.2322 header-rs: icy-notice1: <BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
2006-09-12 09:24:13.2325 header-rs: icy-notice2: SHOUTcast Distributed Network Audio Server/SolarisSparc v1.9.5<BR>
2006-09-12 09:24:13.2326 header-rs: icy-name: Radio Paradise - DJ-mixed modern & classic rock, world, electronica & more - info: radioparadise.com
2006-09-12 09:24:13.2329 header-rs: icy-genre: eclectic rock
2006-09-12 09:24:13.2331 header-rs: icy-url: http://www.radioparadise.com
2006-09-12 09:24:13.2333 header-rs: icy-pub: 1
2006-09-12 09:24:13.2334 header-rs: icy-metaint: 8192
2006-09-12 09:24:13.2335 header-rs: icy-br: 128
2006-09-12 09:24:13.2359 parseHeaders: Bitrate for http://64.236.34.97/stream/1048 set to 128000
2006-09-12 09:24:13.2362 header-rs: icy-irc: #shoutcast
2006-09-12 09:24:13.2364 header-rs: icy-icq: 0
2006-09-12 09:24:13.2365 header-rs: icy-aim: N/A
2006-09-12 09:24:13.2407 opened stream!
2006-09-12 09:24:13.2416 Slim::Player::Protocols::HTTP - in DESTROY
2006-09-12 09:24:13.2419 Slim::Player::Protocols::HTTP About to close socket to: [http://64.236.34.97/stream/1048]
2006-09-12 09:24:13.2458 ERROR: playmode: Couldn't gotoNext song on playlist, stopping

2006-09-12 09:24:13.2468 newSongPlaylistCallback() writeCurTrackForM3U()
2006-09-12 09:24:13.2489 modifyPlaylistCallback: savecurrsong is 1
2006-09-12 09:24:13.2494 modifyPlaylistCallback: finding client playlist for: [00:04:20:04:0b:1c]
2006-09-12 09:24:13.2551 modifyPlaylistCallback: calling setTracks()
2006-09-12 09:24:13.2736 newSongPlaylistCallback() writeCurTrackForM3U()
2006-09-12 09:24:13.2755 modifyPlaylistCallback: savecurrsong is 0
Comment 1 Andy Grundman 2006-09-12 09:59:13 UTC
Will check this out.
Comment 2 Andy Grundman 2006-09-12 21:25:23 UTC
I'm still working on this but it's a complicated fix.

As an alternative to storing remote URLs in local playlist files, I would recommend you try the MyPicks plugin.  It lets you create local links to radio stations and uses the same code as Slim Devices Picks, which handles remote playlists without problems.
Comment 3 Ben Sandee 2006-09-13 07:35:54 UTC
That's a good suggestion, thanks it works well.

FWIW, I tend to avoid 3rd-party plugins because inevitably I don't keep them updated enough and the functionality goes away and I don't notice until I need it.  For the same reason I don't use favorites because when I reinstall SlimServer the favorites go away.  Playlist folder has been the most reliable persistent source.  This situation is updated though because MyPicks does store the OPML file external to the db/etc.
Comment 4 Andy Grundman 2006-09-13 08:36:18 UTC
I've fixed part of this bug in change 9657.  Playlists that contain a *single* remote URL will now work properly.  Playlists with multiple URLs are a more difficult problem to solve, and so I recommend not doing this, and using MyPicks.

Changing target to 7.0 to see if we can find a better solution post-6.5.
Comment 5 Ben Sandee 2006-09-13 08:43:09 UTC
I'm OK with that fix.  One thing I realized after my last post was that I do still need the playlists (I think) in order to wake up to RadioParadise using the Alarm  At least with the fix I can input that one URL and have the station work.

Or is there a way to have the Alarm start up using either a ShoutCast or MyPicks selection?

Comment 6 Andy Grundman 2006-09-13 08:54:56 UTC
Being able to put additional items into the alarm list is a good enhancement.  If there isn't already a bug filed for that, can you file one?  We can look at it after 6.5.
Comment 7 Ben Sandee 2006-09-13 09:00:33 UTC
I tested the fix and it works well, thanks.  

I'm satisfied with the fix overall as at least it normalizes the behavior when compared to supplying a URL to the 'tune in' plugin.  As far as I'm concerned there is no need to leave this open 7.0 just for multiple URL's which I was showing more as a diagnostic.  

I understand that this might impact a large number of existing legacy users who have their playlists from before there was any sort of special internet radio browsing like shoutcast or OPML.  It was standard practice then to 'save as' a playlist link into our playlist folder, which usually does result in files with several URL's.

I'll look for an alarm enhancement and file a new enhancement if I don't find it.




Comment 8 Chris Owens 2006-09-13 09:43:45 UTC
Dan I'm cc'ing you on this bug since it looks like it could be the same as the one you pointed out to me the other day
Comment 9 Dan Evans 2006-09-13 10:47:10 UTC
Subject: Re:  Some Internet Radio URL's only work from Tune-in at
 first

I just created bug 4099 detailing the playlist bug I'm seeing

Comment 10 Andy Grundman 2006-09-13 11:38:57 UTC
*** Bug 4099 has been marked as a duplicate of this bug. ***
Comment 11 Jim Kulp 2006-10-31 06:12:18 UTC
(In reply to comment #7)
> I tested the fix and it works well, thanks.  
> 
> I'm satisfied with the fix overall as at least it normalizes the behavior when
> compared to supplying a URL to the 'tune in' plugin.  As far as I'm concerned
> there is no need to leave this open 7.0 just for multiple URL's which I was
> showing more as a diagnostic.  
> 
> I understand that this might impact a large number of existing legacy users who
> have their playlists from before there was any sort of special internet radio
> browsing like shoutcast or OPML.  It was standard practice then to 'save as' a
> playlist link into our playlist folder, which usually does result in files with
> several URL's.
> 
> I'll look for an alarm enhancement and file a new enhancement if I don't find
> it.
> 

Does this mean that the old itunes playlists containing multiple radio stations will not ever be fixed?
It seems strange to regress the functionality when it is still the most obvious itunes-centric usage model.
(tune in a station, drag into your radio playlist).  Or is it still on for v7?  Hope so.
Comment 12 Chris Owens 2006-11-06 14:57:51 UTC
We will try to fix the multiple-radio-station-in-a-single-playlist bug for 7.0.
Comment 13 Chris Owens 2007-02-27 13:47:15 UTC
*** Bug 4776 has been marked as a duplicate of this bug. ***
Comment 14 Andy Grundman 2007-05-24 06:16:59 UTC
Chris: Why?  7.0 includes MyPicks and uses this for Favorites as the right way to store a bunch of favorite radio stations.  Keeping them in a playlist is the wrong way to do it.
Comment 15 Jim Kulp 2007-05-24 06:25:56 UTC
(In reply to comment #14)
> Chris: Why?  7.0 includes MyPicks and uses this for Favorites as the right way
> to store a bunch of favorite radio stations.  Keeping them in a playlist is the
> wrong way to do it.
> 
It is not necessarily "wrong".  It is the natural and most convenient way of doing it on iTunes,
and many/most iTunes users already use and have such "playlists" of radio stations.
Comment 16 Andy Grundman 2007-05-24 06:37:04 UTC
To me a 'playlist' is a list of tracks to be played in sequence.  Radio stations don't fit this model, so they are better stored another way, such as an OPML file that can be structured into a menu tree of radio stations, like Slim Picks.  This is how 7.0 handles things.  I don't know what we can do about playlists of radio stations from iTunes.
Comment 17 Chris Owens 2007-05-24 11:48:58 UTC
Perhaps something like a radio-station-playlist-to-opml import plugin, then
Comment 18 Andy Grundman 2008-01-21 07:37:23 UTC
Punting.
Comment 19 Alan Young 2008-02-07 22:54:15 UTC
To reinforce this requirement, a playlist with multiple radio stations is useful for (at least) two uses:

1. Use in an Alarm playlist; allows failover to another station if one is not available.
2. Convenient for skipping between the small set of station that one habitually listens to. Up/Down followed by Play is much simpler than navigating to Favourites or any other part of the menu structure.

Between them, these two use-cases account for at least 90% of the listening in our house. It is clear from other bug reports and forum posts that this is a common pattern.

All that said, it all works fine for me. I do not understand the cases where it is reported not to work.
Comment 20 Andy Grundman 2008-02-08 04:58:15 UTC
Alan: I believe the problem comes from the fact that when a playlist is loaded (via Playlists menu), it is sent through the 'loadtracks' command code instead of the 'play' code.  The load code does not perform any scanning of a playlist and so they content-type may be wrong, etc.  i.e. it might try to play in mp3 mode for a wma stream, stuff like that.  I put in a hack in Commands.pm around line 1344 to redirect single-item radio playlists to play/add instead.
Comment 21 Andy Grundman 2008-04-07 08:34:02 UTC
Fixed in 7.0.1 change 18498.  Multiple radio stations in a playlist should now work properly.  They will be loaded into the playlist and scanned by Scanner right before playback, so playlists will get expanded into the right streams, etc.

This will be even better in 7.1 after bug 7520 is fixed.
Comment 22 Ross Levine 2008-05-02 17:38:51 UTC
Verified to be fixed 7.0.1 - 19325
Comment 23 James Richardson 2008-05-15 12:25:50 UTC
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1

Please try that version, if you still see the error, then reopen this bug.

To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html
Comment 24 Chris Owens 2009-07-31 10:13:56 UTC
Reduce number of active targets for SC