OSDN Git Service

Eleven: Remove last.fm artwork calls until we find an alternative
authorlinus_lee <llee@cyngn.com>
Tue, 18 Nov 2014 19:22:07 +0000 (11:22 -0800)
committerlinus_lee <llee@cyngn.com>
Thu, 20 Nov 2014 20:51:37 +0000 (12:51 -0800)
Change-Id: I091c1054a8455cc70ddb4a6a68e0c125c5e04c59

src/com/cyngn/eleven/utils/ImageUtils.java

index d808366..409045e 100644 (file)
@@ -50,17 +50,21 @@ public class ImageUtils {
                                          final String albumName, final ImageWorker.ImageType imageType) {
         switch (imageType) {
             case ARTIST:
-                if (!TextUtils.isEmpty(artistName)) {
+                // Disable last.fm calls - TODO: Find an alternative artwork provider that has
+                // the proper license rights for artwork
+                /*if (!TextUtils.isEmpty(artistName)) {
                     if (PreferenceUtils.getInstance(context).downloadMissingArtistImages()) {
                         final Artist artist = Artist.getInfo(context, artistName);
                         if (artist != null) {
                             return getBestImage(artist);
                         }
                     }
-                }
+                }*/
                 break;
             case ALBUM:
-                if (!TextUtils.isEmpty(artistName) && !TextUtils.isEmpty(albumName)) {
+                // Disable last.fm calls - TODO: Find an alternative artwork provider that has
+                // the proper license rights for artwork
+                /*if (!TextUtils.isEmpty(artistName) && !TextUtils.isEmpty(albumName)) {
                     if (PreferenceUtils.getInstance(context).downloadMissingArtwork()) {
                         final Artist correction = Artist.getCorrection(context, artistName);
                         if (correction != null) {
@@ -71,7 +75,7 @@ public class ImageUtils {
                             }
                         }
                     }
-                }
+                }*/
                 break;
             default:
                 break;