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

Fix discogs disc field is set to zero #1691

Closed
wants to merge 1 commit into from
Closed

Fix discogs disc field is set to zero #1691

wants to merge 1 commit into from

Conversation

l-t-k
Copy link
Contributor

@l-t-k l-t-k commented Nov 3, 2015

Fix for #587. Disc field is only zero when there is only one medium, so this will do the trick. I wasn't able to reproduce the real problem within the code. This is just a small workaround.

Fixes #587. The disc field is only zero when there is only one medium, so I think this will do the trick. I wasn't able to reproduce the real problem within the code. This is just a small workaround.
@sampsyo
Copy link
Member

sampsyo commented Nov 4, 2015

Thanks for finding the issue. Since discogs doesn't have tests, we need to be sure this doesn't break other situations.

Obviously, the ideal solution would be to write some tests for this code. Barring that, maybe we can come up with a more fix—specifically, we should explain why the if above isn't firing to increment the medium number.

@@ -299,6 +299,7 @@ def get_tracks(self, tracklist):
medium_count += 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theoretically, this should be taking care of making the medium count 1.

@diego-plan9
Copy link
Member

Closing this pull request after adding tests at #2228 - thanks @kooimens for providing the actual solution!

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

Successfully merging this pull request may close these issues.

3 participants