After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 546146 - ASX Parsing is broken
ASX Parsing is broken
Status: RESOLVED DUPLICATE of bug 545646
Product: banshee
Classification: Other
Component: Internet Radio
git master
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-03 22:18 UTC by Félix Velasco
Modified: 2008-08-06 01:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for the ASX parsing (1.46 KB, patch)
2008-08-03 22:25 UTC, Félix Velasco
none Details | Review

Description Félix Velasco 2008-08-03 22:18:48 UTC
Please describe the problem:
Asx radio stations doesn't work, since the parsing code for the xml is broken

Steps to reproduce:
1. Add a asx-based radio station (http://www.radioeins.de/live.wax, http://player.nrj.fr/V4/nrj/nrj.asx)
2. Double-click on it


Actual results:
Nothing

Expected results:
The radio station should start playing

Does this happen every time?
yes

Other information:
Comment 1 Félix Velasco 2008-08-03 22:25:51 UTC
Created attachment 115793 [details] [review]
patch for the ASX parsing

There were two problems with the asx parsing. First of all, the condition for the while was wrong, and the code never entered the main loop. Besides this, the code expected lower-case tags, but the asx format, as defined by ms, is upper-cased. Since there are many lower-case and even mixed-case asx files in the web, I modified the code to recognise both cases.
Comment 2 Andrew Conkling 2008-08-04 18:38:08 UTC
Seems like a duplicate of bug 510782. I'll try to test your patch with the steps and station described there: http://www.wdr.de/wdrlive/media/wdr3-wm32.asx.
Comment 3 Bertrand Lorentz 2008-08-04 19:24:48 UTC
I think bug #510782 is more about being unable to handle the mms:// protocol.

I'm marking this as duplicate of bug #545646, which was reported earlier and also has a patch. Sorry Félix, you'll have to bring your patch over to it.

By the way, in your patch, I think that
if (href == null || String.Compare("", href)==0)

could be better written as 
if (String.IsNullOrEmpty (href))

*** This bug has been marked as a duplicate of 545646 ***
Comment 4 Andrew Conkling 2008-08-04 19:48:21 UTC
(In reply to comment #3)
> I think bug #510782 is more about being unable to handle the mms:// protocol.

The URL changed to the one I linked above, but the issue remained.

Also, I've gotten yelled at before for marking bugs as duplicates with patches; the least we could do, when necessary, is download the patches and reupload them to the other bug. (I'll do that later on, can't at the moment.)
Comment 5 Andrew Conkling 2008-08-06 01:53:16 UTC
Patch obsoleted by commit from bug 545646.