-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
discogs: Fix discogs_albumid extraction #4303
Conversation
Looks good overall, except that a test seems to be failing. Also, just to check: is |
Hi @sampsyo
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for tracking down the failing test!
I made a silly suggestion within, but maybe the better fix would actually be to just fix the test so it actually includes an ID? (Unless we expect the API to ever return a response without a URL, which I doubt…)
Use extract_release_id_regex instead of extract_release_id to get the release ID out ouf the Discogs release URL.
Check whether any input worth pattern checking was passed.
This reverts commit c3cc055. We assume the Discogs API never returns a release response without an URI.
Thanks for the review! Added URI to test data, removed sanity check in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay; looks great!!
Description
To Do
Documentation.