[gnome-music] revert changes for fetching larger thumbnails, this should be fixed in grilo



commit 43b0469b4a9809a92920163c39746d32af168be6
Author: Seif Lotfy <seif lotfy com>
Date:   Sun May 12 20:10:19 2013 +0200

    revert changes for fetching larger thumbnails, this should be fixed in grilo

 src/albumArtCache.js |    3 ---
 src/widgets.js       |    4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/albumArtCache.js b/src/albumArtCache.js
index 3aadc38..e9e8d45 100644
--- a/src/albumArtCache.js
+++ b/src/albumArtCache.js
@@ -110,10 +110,7 @@ const AlbumArtCache = new Lang.Class({
     },
 
     getFromUri: function(uri, artist, album, width, height, callback) {
-        // FIXME: Get a binary and store
         if (uri == null) return;
-        uri = uri.replace("/126/", "/252/");
-        print (uri)
         if (this.requested_uris.indexOf(uri) >= 0) return;
 
         this.requested_uris.push(uri);
diff --git a/src/widgets.js b/src/widgets.js
index 97459aa..21aef63 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -176,9 +176,9 @@ const AlbumWidget = new Lang.Class({
             }));
         }
         this.view.set_model(this.model);
-        let pixbuf = albumArtCache.lookup (252, artist, item.get_string(Grl.METADATA_KEY_ALBUM));
+        let pixbuf = albumArtCache.lookup (256, artist, item.get_string(Grl.METADATA_KEY_ALBUM));
         if (pixbuf == null)
-            pixbuf = albumArtCache.makeDefaultIcon(252, 252);
+            pixbuf = albumArtCache.makeDefaultIcon(256, 256);
         this.ui.get_object("cover").set_from_pixbuf (pixbuf);
 
         let escapedArtist = GLib.markup_escape_text(artist, -1);


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