[gnome-music] Complete patch for artwork requests



commit f93699203957b151e09a74143035647ff69fa205
Author: Guillaume Quintard <guillaume quintard gmail com>
Date:   Thu May 9 11:10:02 2013 +0200

    Complete patch for artwork requests
    
    if indexOf return 0, the item is in the list, and we should return

 src/albumArtCache.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/albumArtCache.js b/src/albumArtCache.js
index 27bd655..f56c028 100644
--- a/src/albumArtCache.js
+++ b/src/albumArtCache.js
@@ -105,7 +105,7 @@ const AlbumArtCache = new Lang.Class({
 
     getFromUri: function(uri, artist, album, width, height, callback) {
         if (uri == null) return;
-        if (this.requested_uris.indexOf(uri) > 0) return;
+        if (this.requested_uris.indexOf(uri) >= 0) return;
 
         this.requested_uris.push(uri);
 


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