-
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
Fix for #2790 - acousticbrainz: Really small float values are stored as strings #3238
Conversation
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.
Awesome; thank you!! Here are a couple of little coding suggestions.
beetsplug/acousticbrainz.py
Outdated
@@ -151,7 +176,7 @@ def _get_data(self, mbid): | |||
return {} | |||
|
|||
if res.status_code == 404: | |||
self._log.info(u'recording ID {} not found', mbid) | |||
self._log.info(u'recording ID \'{}\' not found', mbid) |
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.
Any particular reason to add these single quotes in these log statements? For the sake of the cleanliness of this PR, it would be awesome to leave that to a later change if you don't mind—and keep this change focused on just the fix you have here.
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.
I did this while debugging ... the output was easier to read for me this way.
Example:
acousticbrainz: attribute 'gender' of 'M83 - - Ludivine' set to 'male'
But, anyway, you are correct. I can revert it if you like.
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.
It's probably best to revert this (and the other log statements too) if not just because it adds unrelated changes/noise to this PR.
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.
Reverted them.
@sampsyo
Fix for #2790 - acousticbrainz: Really small float values are stored as strings
Successor-PR for 3233. Fixes #2790