Index: rb-ipod-source.c
===================================================================
--- rb-ipod-source.c	(révision 5528)
+++ rb-ipod-source.c	(copie de travail)
@@ -1150,10 +1150,15 @@
 	pixbuf = GDK_PIXBUF (g_value_get_object (metadata));
 		
 	song = g_hash_table_lookup (priv->artwork_request_map, entry);
+
+        printf("artwork_notify_cb\n");
+
 	if (song == NULL)
 		return;
 
 	rb_ipod_db_set_thumbnail (priv->ipod_db, song, pixbuf);
+        printf("\n\n\n\n\n\nset pixbuf for song %s\n", song->title);
+        
 	g_hash_table_remove (priv->artwork_request_map, entry);
 }
 
@@ -1257,12 +1262,35 @@
 	if (priv->artwork_notify_id == 0) {
 		priv->artwork_notify_id = g_signal_connect_object (db, "entry-extra-metadata-notify::rb:coverArt",
 								   (GCallback)artwork_notify_cb, isource, 0);
-	}
+                }
 
 	metadata = rhythmdb_entry_request_extra_metadata (db, entry, "rb:coverArt");
 	if (metadata) {
+
 		artwork_notify_cb (db, entry, "rb:coverArt", metadata, isource);
 	}
+        else
+          {
+             char buf[4096];
+             GdkPixbuf *pixbuf;
+             
+             song = g_hash_table_lookup (priv->artwork_request_map, entry);
+             if (song == NULL)
+               return;
+             g_snprintf(buf,sizeof(buf), "%s/covers/%s - %s.jpg",  rb_dot_dir (), song->artist, song->album);
+             if (g_file_test(buf, G_FILE_TEST_EXISTS))
+               {
+                  pixbuf = gdk_pixbuf_new_from_file (buf, NULL);
+                  if (pixbuf)
+                    {     
+                       rb_ipod_db_set_thumbnail (priv->ipod_db, song, pixbuf);
+                       g_hash_table_remove (priv->artwork_request_map, entry);
+                    }
+                  
+               }
+             
+          }
+        
 }
 
 static void
@@ -1306,6 +1334,7 @@
 	db = get_db_for_source (isource);
 
 	song = create_ipod_song_from_entry (entry, mimetype);
+
 	if (song != NULL) {
 		RBiPodSourcePrivate *priv = IPOD_SOURCE_GET_PRIVATE (source);
 		char *filename;
