Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jrsousa2 opened this issue Nov 23, 2021 · 2 comments
Open

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

jrsousa2 opened this issue Nov 23, 2021 · 2 comments

Comments

@jrsousa2
Copy link

jrsousa2 commented Nov 23, 2021

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

@matteing
Copy link
Owner

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!

@jrsousa2
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants