From f74774f5f76c5184db00615a1be03d8d19f3ad9d Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Tue, 11 Nov 2014 11:37:03 +0100 Subject: [PATCH] Be more generous with Spotify image resolution now that the cache protects against poor reponse times --- src/spotify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spotify.c b/src/spotify.c index 611975e4..3038305e 100644 --- a/src/spotify.c +++ b/src/spotify.c @@ -1058,11 +1058,11 @@ artwork_get(struct spotify_command *cmd) goto level2_exit; } - // TODO rescale + // Get an image at least the same size as requested image_size = SP_IMAGE_SIZE_SMALL; // 64x64 - if ((cmd->arg.artwork.max_w > 200) && (cmd->arg.artwork.max_h > 200)) + if ((cmd->arg.artwork.max_w > 64) || (cmd->arg.artwork.max_h > 64)) image_size = SP_IMAGE_SIZE_NORMAL; // 300x300 - if ((cmd->arg.artwork.max_w > 500) && (cmd->arg.artwork.max_h > 500)) + if ((cmd->arg.artwork.max_w > 300) || (cmd->arg.artwork.max_h > 300)) image_size = SP_IMAGE_SIZE_LARGE; // 640x640 image_id = fptr_sp_album_cover(album, image_size);