Bugzilla – Bug 4092
Multiple radio stations in a playlist don't work
Last modified: 2009-07-31 10:13:56 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
Will check this out.
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.
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.
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.
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?
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.
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.
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
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
*** Bug 4099 has been marked as a duplicate of this bug. ***
(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.
We will try to fix the multiple-radio-station-in-a-single-playlist bug for 7.0.
*** Bug 4776 has been marked as a duplicate of this bug. ***
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.
(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.
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.
Perhaps something like a radio-station-playlist-to-opml import plugin, then
Punting.
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.
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.
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.
Verified to be fixed 7.0.1 - 19325
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
Reduce number of active targets for SC