[banshee/1.5.1-fixes: 37/56] [Banshee.Streaming] Recursively fetch mms links



commit 3fd3f548507fb7165117f80c9f27dc8238035042
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]