Joschka Thurner wrote:
> Here is a small annoyance I encountered:
>
> When Sonata downloads album covers, it fetches a low resolution image
> (70x70), even though a higher resolution (170x170) is available when
> manually searching for covers. Apart from resolution, the covers are
> identical. This was the case for every cover I fetched so far.
>
> Two reasons I could imagine beeing being responsible for this: a)
> there is a "thumbnail" version that gets pulled, or b) the service (is
> it rhapsody now?) offers two resolutions, and the lower one is somehow
> preferred by sonata.
> I had a brief look through albumart.py, but was totally lost - can not
> code...

Heh this is understandable. We default to the first image, which is
usually the smaller one. I think it's fine for now to default to the
bigger image as the main usage is the bigger icon. In the future it
would be nice to have the users of the images choose which size they
prefer so for example the library can load faster by downloading smaller
icons.

>
> If anyone could come up with a way to make Sonata use the better
> resolution Covers by default, highly appreciated.
>

How about this?

--->8----

From: Stephen Boyd <[email protected]>
Date: Wed, 14 Oct 2009 23:43:10 -0700
Subject: [PATCH] rhapsody: download big artwork when requesting single image

Previously, the first artwork image listed by rhapsody would be
downloaded usually resulting in a small 70x70 image. Download the larger
170x170 image (usually the last image) instead because the most frequent
user of the artwork is the currently playing icon.

Reported-by: Joschka Thurner <[email protected]>
---
 sonata/artwork.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sonata/artwork.py b/sonata/artwork.py
index 69810a1..6441fa8 100644
--- a/sonata/artwork.py
+++ b/sonata/artwork.py
@@ -558,7 +558,7 @@ def artwork_download_img_to_file(self, artist, album, 
dest_filename, all_images=
             return False

         if not all_images:
-            urllib.urlretrieve(imglist[0], dest_filename)
+            urllib.urlretrieve(imglist[-1], dest_filename)
             self.downloading_image = False
             return True
         else:


_______________________________________________
Sonata-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/sonata-users

Reply via email to