Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f8e5591 authored by linus_lee's avatar linus_lee
Browse files

Eleven: Remove last.fm artwork calls until we find an alternative

Change-Id: I091c1054a8455cc70ddb4a6a68e0c125c5e04c59
parent d3feca9c
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -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;