[tracker/tracker-0.6] Fixes NB#142225, Album art: Windows media player filename format not



commit 5d7b0b12a99445c6e4f4dfcc9afb91fc174ef386
Author: Mikael Ottela <mikael ottela ixonos com>
Date:   Thu Oct 8 18:45:11 2009 +0300

    Fixes NB#142225, Album art: Windows media player filename format not
    supported.
    
    Folder.jpg as used by Windows media player for album art added to the list of
    checked files.

 src/libtracker-common/tracker-albumart.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-albumart.c b/src/libtracker-common/tracker-albumart.c
index afe2ba4..0fa55fe 100644
--- a/src/libtracker-common/tracker-albumart.c
+++ b/src/libtracker-common/tracker-albumart.c
@@ -465,7 +465,8 @@ tracker_albumart_heuristic (const gchar *artist_,
 		/* Try to find cover art in the directory */
 		for (name = g_dir_read_name (dir); name; name = g_dir_read_name (dir)) {
 			if ((artist && strcasestr (name, artist)) || 
-			    (album && strcasestr (name, album))   || 
+			    (album && strcasestr (name, album))   ||
+			    (strcasestr (name, "folder"))         ||
 			    (strcasestr (name, "cover"))) {
 				GError *error = NULL;
 				



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