Opened 13 years ago
Closed 12 years ago
Last modified 12 years ago
#11218 closed Bug Report - General (fixed)
streaming radio does not follow redirects
Reported by: | Owned by: | cpinkham | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
radioseven.se's website links to http://www.radioseven.se/128.pls, so I added that as new Shoutcast station.
request:
GET /128.pls HTTP/1.1 User-Agent: MythTV v0.27.20120906-1 MythDownloadManager Connection: Keep-Alive Accept-Encoding: gzip Accept-Language: de-DE,en,* Host: www.radioseven.se
reply:
HTTP/1.1 301 Moved Permanently Content-Length: 156 Content-Type: text/html Location: http://play.radioseven.se/128.pls Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Date: Fri, 02 Nov 2012 22:50:26 GMT <head><title>Document Moved</title></head> <body><h1>Object Moved</h1>This document may be found <a HREF="http://play.radioseven.se/128.pls">here</a></body>
frontend log:
2012-11-02 23:49:43.166881 I File 128.pls has extension pls 2012-11-02 23:49:43.166941 I Retrieving playlist from 'http://www.radioseven.se/128.pls' 2012-11-02 23:49:43.574759 E CfgReader:: Badly formatted line 1 2012-11-02 23:50:13.168184 E DecoderHandler:: Timed out trying to download playlist from: http://www.radioseven.se/128.pls
manually resolving the redirect appears to get me to #11214
Change History (4)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | Plugin - MythMusic → MythTV - General |
---|---|
Owner: | set to cpinkham |
Status: | new → assigned |
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 12 years ago by
Milestone: | unknown → 0.27 |
---|
Note: See
TracTickets for help on using
tickets.
Actually this is a problem with the DownloadManager? not with MythMusic.
What happens is the downloaded file ends up containing both the text from the redirect message and the text from the final redirected file like this:-
This patch fixes the problem but there is probably a better way to do it. Hopefully it will give whoever reviews this something to work with.