[banshee/stable-2.0] PlsPlaylistFormat: Make parsing the header case-insensitive (bgo#648458)



commit 5054b700ba5c4c32cbb21925a5ff5c2a11649ef9
Author: Michael Martin-Smucker <mlmartin13 gmail com>
Date:   Tue Apr 26 21:09:03 2011 -0400

    PlsPlaylistFormat: Make parsing the header case-insensitive (bgo#648458)
    
    Some .pls playlists could not be imported into Banshee because they use
    a capital 'P' in the '[Playlist]' header. This patch lets Banshee read
    these playlists by ignoring the case of that header.
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 .../Banshee.Playlists.Formats/PlsPlaylistFormat.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlsPlaylistFormat.cs b/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlsPlaylistFormat.cs
index 46efa50..44ff9e9 100644
--- a/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlsPlaylistFormat.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlsPlaylistFormat.cs
@@ -60,7 +60,7 @@ namespace Banshee.Playlists.Formats
                 return false;
             }
 
-            return line.Trim() == "[playlist]";
+            return line.Trim().ToLower() == "[playlist]";
         }
 
         public PlsPlaylistFormat()



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