-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels