[maemo-commits] [maemo-commits] r17037 - in projects/haf/trunk/hildon-thumbnail: . albumart-providers/googleimages

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Dec 23 12:02:12 EET 2008
Author: pvanhoof
Date: 2008-12-23 12:02:00 +0200 (Tue, 23 Dec 2008)
New Revision: 17037

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/albumart-providers/googleimages/google-images-art-downloader.vala
Log:
2008-12-23  Philip Van Hoof  <philip at codeminded.be>

        * albumart-providers/googleimages/google-images-art-downloader.vala:
        Fixed the album-art path. Careful Marius, this requires recompiling
        the vala bits. Also mind the music-store plugin which is external!



Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2008-12-22 12:33:44 UTC (rev 17036)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2008-12-23 10:02:00 UTC (rev 17037)
@@ -1,3 +1,9 @@
+2008-12-23  Philip Van Hoof  <philip at codeminded.be>
+
+	* albumart-providers/googleimages/google-images-art-downloader.vala:
+	Fixed the album-art path. Careful Marius, this requires recompiling
+	the vala bits. Also mind the music-store plugin which is external!
+
 2008-12-19  Marius Vollmer  <marius.vollmer at nokia.com>
 
 	Released 3.0.17

Modified: projects/haf/trunk/hildon-thumbnail/albumart-providers/googleimages/google-images-art-downloader.vala
===================================================================
--- projects/haf/trunk/hildon-thumbnail/albumart-providers/googleimages/google-images-art-downloader.vala	2008-12-22 12:33:44 UTC (rev 17036)
+++ projects/haf/trunk/hildon-thumbnail/albumart-providers/googleimages/google-images-art-downloader.vala	2008-12-23 10:02:00 UTC (rev 17037)
@@ -24,10 +24,10 @@
 			kind = "album";
 
 		if (album == null)
-			album = "";
+			album = "  ";
 
 		if (artist == null)
-			artist = "";
+			artist = "  ";
 
 		// Convert the album and artist into something that will work for Google images
 
@@ -98,9 +98,13 @@
 								  "media-art", kind + "-" +
 								  Checksum.compute_for_string (
 										   ChecksumType.MD5, 
-										   (artist + " " + album).down (), 
-										   -1) + ".jpeg",
-								  null);
+										   (artist).down (), 
+										   -1) + "-" +
+								  Checksum.compute_for_string (
+										   ChecksumType.MD5, 
+										   (album).down (), 
+										   -1) +
+								   ".jpeg", null);
 
 				// Make sure the directory .album_arts is available
 


More information about the maemo-commits mailing list