Album Cover Art Downloader crashes when using Amazon
Earlier this month (Feb 08) my Album Cover Art Downloader kept spitting out errors when using Amazon to find artwork. Here is a copy of the error:
Traceback (most recent call last):
File “/usr/lib/albumart/process.py”, line 130, in run
for cover in albumart.getAvailableCovers(artist, album, requireExactMatch = self.requireExactMatch):File “/usr/lib/albumart/albumart.py”, line 115, in getAvailableCovers
results += s.findAlbum(”%s %s” % (artist, album))File “/usr/lib/albumart/albumart_source_amazon.py”, line 49, in findAlbum
return amazon.searchByKeyword(name,type=”lite”,product_line=”music”)File “/usr/lib/albumart/amazon.py”, line 315, in searchByKeyword
return search(”KeywordSearch”, keyword, product_line, type, page, license_key, http_proxy, locale, associate)File “/usr/lib/albumart/amazon.py”, line 293, in search
xmldoc = minidom.parse(usock)File “/usr/lib/python2.5/xml/dom/minidom.py”, line 1913, in parse
return expatbuilder.parse(file)File “/usr/lib/python2.5/xml/dom/expatbuilder.py”, line 928, in parse
result = builder.parseFile(file)File “/usr/lib/python2.5/xml/dom/expatbuilder.py”, line 207, in parseFile
parser.Parse(buffer, 0)ExpatError: not well-formed (invalid token): line 24, column 19
Googling lines from the error led me to this blog written by Rich Burridge: http://blogs.sun.com/richb/entry/updated_be_informed_when_used. Seems Amazon changed their system around slightly which was causing errors in a python library. Since the error was so similar, I asked him for help and he kindly told me how to fix it.
In the file “albumart_source_amazon.py” add a “time.sleep(2)” right before line 48 so it reads:
time.sleep(2)
return amazon.searchByKeyword(name,type=”lite”,product_line=”music”)
That is actually only two lines, sorry for the column width wrap-around. Please note its very important for the tab spaces to line up evenly. The script will run slower, but with no errors. Thank you Rich for this temporary fix until someone releases a new version of Album Cover Art Downloader.
March 16th, 2008 at 6:57 pm
Hello,
i’ve got the same problem but can’t fix it. Can you send me a fixed version of the album cover art downloader? That would be so nice.
Thanks a lot,
Jan
April 2nd, 2008 at 12:35 am
Hey.
I’m also having the same problem and can’t fix it. Can you please send me a fixed version???
Thanks heaps.
April 3rd, 2008 at 7:18 am
Hello,
I tried Rich’s suggestion and fix, but it doesn’t work. It says :
“NameError : global name ‘time’ is not defined”
I don’t know python at all, so I thought it was something like a predefined function. But it ain’t so, it seems.
So how do I have to declare ‘time’ in order to make time.sleep(2) work ?
Thanks in advance
Ehol
April 3rd, 2008 at 7:28 am
Update :
I tried to declare time using “Import” at the beginning of the script (i.e. import time).
Now it doesn’t give any error anymore, but it doesn’t find any cover at all. Never.
I think something messed up here, but I don’t know what …
Hope you can help me
Thanks
Ehol
April 3rd, 2008 at 9:46 pm
I tried this trick. added the import time at the beginning of the script. negative. I believe that amazon has changed how they store and serve album cover art b/c amarok is also now unable to get album covers from amazon. we’ll have to wait for a patch for these to work properly, I am guessing.
April 6th, 2008 at 4:05 pm
As of April 2008, Amazon has deprecated the 3.0 version of their web services API. Since Album Cover Art Downloader depends on that very API, the Amazon image source has been disabled in the latest version of the program. If you are running an older version of the program, simply disable the Amazon image source in via the settings menu.
See http://unrealvoodoo.org/hiteck/projects/albumart/
April 8th, 2008 at 7:22 pm
Can someone upload an exe of version 1.6.3??
November 4th, 2008 at 3:39 am
The problem is Amazon doesn’t allow downloading of cover pics any more, (No right-click and Save Image As) they’ve probably been threatened with lawsuits or are sick of the bandwidth being wasted by non buyers. The new, 1.6.6 doesn’t use Amazon. Go here and download it. http://www.unrealvoodoo.org/hiteck/projects/albumart/