Support the track/list_by_mbid API route #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements #56.
There's not much structure to the returned data so this function parses the response itself instead of having a separate parse function.
I copied the error-raising code from submit. Maybe that should be folded into
_api_request
?AcoustIDs can be disabled (soft-deleted). When the caller asks to include the disabled ids with
disabled=True
we return a pair of lists instead of a list of(id, disabled)
pairs. Neither option feels great, but I expect anyone who wants the disabled ids to treat them differently from the enabled ones, so I went with the pair of lists. I am willing to change this if you think list-of-pairs is better.I'm not a "native" Python developer so bikeshedding and style nits are appreciated.