You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: