banshee r4490 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Playlists.Formats
- From: blorentz svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4490 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Playlists.Formats
- Date: Mon, 8 Sep 2008 12:11:50 +0000 (UTC)
Author: blorentz
Date: Mon Sep 8 12:11:50 2008
New Revision: 4490
URL: http://svn.gnome.org/viewvc/banshee?rev=4490&view=rev
Log:
2008-09-08 Bertrand Lorentz <bertrand lorentz gmail com>
* src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs:
http URLs in ASX files are in fact mmsh URLs. Patch by FÃlix Velasco with
a suggestion from Gabriel (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 Mon Sep 8 12:11:50 2008
@@ -107,7 +107,12 @@
element["title"] = xml_reader.Value;
break;
case "ref":
- element["uri"] = ResolveUri(xml_reader["HREF"] ?? xml_reader["href"]);
+ // asf links say they are http, but are mmsh instead
+ string uri_aux = xml_reader["HREF"] ?? xml_reader["href"];
+ if (uri_aux.StartsWith("http", StringComparison.CurrentCultureIgnoreCase))
+ uri_aux = "mmsh" + uri_aux.Substring(4);
+
+ element["uri"] = ResolveUri(uri_aux);
break;
case "duration":
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]