banshee r4328 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Playlists.Formats
- From: blorentz svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4328 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Playlists.Formats
- Date: Tue, 5 Aug 2008 21:16:54 +0000 (UTC)
Author: blorentz
Date: Tue Aug 5 21:16:53 2008
New Revision: 4328
URL: http://svn.gnome.org/viewvc/banshee?rev=4328&view=rev
Log:
2008-08-05 Bertrand Lorentz <bertrand lorentz gmail com>
* src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs:
Another patch from FÃlix Velasco, this time to fix the parsing of ASX
playlists (BGO #545646).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs Tue Aug 5 21:16:53 2008
@@ -89,7 +89,7 @@
Dictionary<string, object> element = AddElement();
- while(!xml_reader.EOF && xml_reader.Depth > 1) {
+ do {
try {
xml_reader.Read();
} catch {
@@ -106,7 +106,7 @@
element["title"] = xml_reader.Value;
break;
case "ref":
- element["uri"] = ResolveUri(xml_reader["href"]);
+ element["uri"] = ResolveUri(xml_reader["HREF"] ?? xml_reader["href"]);
break;
case "duration":
try {
@@ -116,7 +116,7 @@
}
break;
}
- }
+ } while(!xml_reader.EOF && xml_reader.Depth > 1);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]