Be more generous with Spotify image resolution now that the cache protects against poor reponse times

This commit is contained in:
ejurgensen 2014-11-11 11:37:03 +01:00
parent 7578bb1205
commit f74774f5f7
1 changed files with 3 additions and 3 deletions

View File

@ -1058,11 +1058,11 @@ artwork_get(struct spotify_command *cmd)
goto level2_exit; goto level2_exit;
} }
// TODO rescale // Get an image at least the same size as requested
image_size = SP_IMAGE_SIZE_SMALL; // 64x64 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 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_size = SP_IMAGE_SIZE_LARGE; // 640x640
image_id = fptr_sp_album_cover(album, image_size); image_id = fptr_sp_album_cover(album, image_size);