[banshee] Playlists: Recognize m3u playlists without header (bgo#645351)



commit 9555b10829a30a0695ae2dcd4c3fc7b93fcea50e
Author: Frank Ziegler <funtastix googlemail com>
Date:   Mon Mar 21 09:14:11 2011 +0700

    Playlists: Recognize m3u playlists without header (bgo#645351)
    
    Extend MagicHandler to check first line for a whitelisted media file
    extension.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Playlists.Formats/M3uPlaylistFormat.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Playlists.Formats/M3uPlaylistFormat.cs b/src/Core/Banshee.Services/Banshee.Playlists.Formats/M3uPlaylistFormat.cs
index 46bb44d..480d996 100644
--- a/src/Core/Banshee.Services/Banshee.Playlists.Formats/M3uPlaylistFormat.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlists.Formats/M3uPlaylistFormat.cs
@@ -52,7 +52,7 @@ namespace Banshee.Playlists.Formats
             }
 
             line = line.Trim();
-            return line == "#EXTM3U" || line.StartsWith("http");
+            return line == "#EXTM3U" || line.StartsWith("http") || Banshee.Collection.Database.DatabaseImportManager.IsWhiteListedFile (line);
         }
 
         public M3uPlaylistFormat()



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