[banshee/stable-1.8] [TrackEditor] Don't try to load metadata over HTTP



commit c0e6817028b531b20ed96227fbeca40116a616dd
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Oct 14 14:14:57 2010 -0500

    [TrackEditor] Don't try to load metadata over HTTP

 .../Banshee.Gui.TrackEditor/EditorTrackInfo.cs     |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/EditorTrackInfo.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/EditorTrackInfo.cs
index 8a47154..4f560ad 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/EditorTrackInfo.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/EditorTrackInfo.cs
@@ -92,17 +92,18 @@ namespace Banshee.Gui.TrackEditor
 
         public TagLib.File GetTaglibFile ()
         {
-            TagLib.File file = null;
+            if (Uri.Scheme == "http" || Uri.Scheme == "https")
+                return null;
 
             try {
-                file = StreamTagger.ProcessUri (Uri);
+                return StreamTagger.ProcessUri (Uri);
             } catch (Exception e) {
                 if (Uri.Scheme == "file") {
                     Hyena.Log.Exception ("Cannot load TagLib file", e);
                 }
             }
 
-            return file;
+            return null;
         }
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]