[maemo-commits] [maemo-commits] r16323 - projects/haf/branches/hildon-thumbnail/daemonize/albumart-providers/googleimages

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Oct 3 12:39:45 EEST 2008
Author: pvanhoof
Date: 2008-10-03 12:39:43 +0300 (Fri, 03 Oct 2008)
New Revision: 16323

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/albumart-providers/googleimages/google-images-art-downloader.vala
Log:
Various fixes

Modified: projects/haf/branches/hildon-thumbnail/daemonize/albumart-providers/googleimages/google-images-art-downloader.vala
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/albumart-providers/googleimages/google-images-art-downloader.vala	2008-10-03 09:38:05 UTC (rev 16322)
+++ projects/haf/branches/hildon-thumbnail/daemonize/albumart-providers/googleimages/google-images-art-downloader.vala	2008-10-03 09:39:43 UTC (rev 16323)
@@ -30,6 +30,8 @@
 			first = false;
 		}
 
+		stitched += "+";
+
 		u = 0;
 		first = true;
 		pieces = album.split (" ", -1);
@@ -42,6 +44,8 @@
 			first = false;
 		}
 
+		stitched += "+album+cover";
+
 		// Start the query on Google images
 
 		File google_search = File.new_for_uri ("http://images.google.com/images?q=" + Uri.escape_string (stitched, "+", false));
@@ -85,8 +89,8 @@
 								  ".album_art",
 								  Checksum.compute_for_string (
 										   ChecksumType.MD5, 
-										   (artist + " " + album).down () + ".jpeg", 
-										   -1),
+										   (artist + " " + album).down (), 
+										   -1) + ".jpeg",
 								  null);
 
 				// Make sure the directory .album_arts is available


More information about the maemo-commits mailing list