[banshee] [Banshee.Streaming] Recursively fetch mms links
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [Banshee.Streaming] Recursively fetch mms links
- Date: Fri, 13 Nov 2009 01:07:31 +0000 (UTC)
commit 06d6f595e3597ffb35c9a49e0604e72a7f08a4e3
Author: Jason Taylor <killerkiwi2005 gmail com>
Date: Fri Nov 13 13:16:33 2009 +1300
[Banshee.Streaming] Recursively fetch mms links
Fixes BGO #601752
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
.../Banshee.Streaming/RadioTrackInfo.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs b/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs
index eac60b4..64b3ac7 100644
--- a/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs
+++ b/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs
@@ -291,6 +291,11 @@ namespace Banshee.Streaming
if (parser.Parse(new SafeUri(uri))) {
foreach(Dictionary<string, object> element in parser.Elements) {
if(element.ContainsKey("uri")) {
+ // mms can be a nested link
+ string element_uri = element["uri"].ToString();
+ if(element_uri.StartsWith("mms:", StringComparison.CurrentCultureIgnoreCase)){
+ LoadStreamUri("http" + element_uri.Substring(element_uri.IndexOf(":")));
+ }
stream_uris.Add(new SafeUri(((Uri)element["uri"]).AbsoluteUri));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]