[banshee] [StreamTagger] Import UrlDecoded filename as title



commit 2b9cae9e03ffe84e2cce825259d65e6888d069e2
Author: Nicolo' Chieffo <nicolo chieffo gmail com>
Date:   Tue Jun 22 21:04:50 2010 +0200

    [StreamTagger] Import UrlDecoded filename as title
    
    Fixes bug where track titles for files without metadata readable by
    taglib# would contain %20 for a space, etc (bgo#608382)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Core/Banshee.Streaming/StreamTagger.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs b/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs
index 23231e5..319e1bb 100644
--- a/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs
+++ b/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs
@@ -209,7 +209,8 @@ namespace Banshee.Streaming
 
             if (String.IsNullOrEmpty (track.TrackTitle)) {
                 try {
-                    string filename = System.IO.Path.GetFileNameWithoutExtension (track.Uri.AbsoluteUri);
+                    string filename = System.Web.HttpUtility.UrlDecode
+			    (System.IO.Path.GetFileNameWithoutExtension (track.Uri.AbsoluteUri));
                     if (!String.IsNullOrEmpty (filename)) {
                         track.TrackTitle = filename;
                     }



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