matteing/coverpy

I'm getting an HTTP error when I use your code

jrsousa2 opened this issue · 2 comments

Below the code that's throwing an exception and halting the code.
Do you know how to fix this pls? Thank you so much

def Busca(Art,Title,Album,res):
busca = coverpy.CoverPy()
kw = Art + " " + Title
try:
query = busca.get_cover(kw)
if Art.lower()==query.artist.lower() and
(Title.lower()==query.name.lower() or Album.lower()==query.album.lower()):
res['RC'] = True
res['Type'] = query.type
res['Art'] = query.artist
res['Title'] = query.name
res['Album'] = query.album
res['URL'] = query.url
# what type of match is it?
if Title.lower()==query.name.lower():
res['Match'] = 'Title'
else:
res['Match'] = 'Album'
else:
res['RC'] = False
except coverpy.exceptions.NoResultsException as e:
res['RC'] = False

Woah, I never knew anyone actually used this library.

I honestly have no clue: it's likely they changed the API in some way. I don't currently have the bandwidth to fix this -- I haven't used this library in years.

Best!

Lol, I'm getting good results from it. Let me try, maybe I can fix this. Thanks