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



commit a6609c86e0aa7a98a08d6a0bf6fa6aa8525e5c1a
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]