Fix discogs disc field is set to zero

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.
This commit is contained in:
kooimens 2015-11-03 19:57:05 +01:00 committed by Diego Moreda
parent fc9f061574
commit 373cf19f8b

View file

@ -335,6 +335,7 @@ class DiscogsPlugin(BeetsPlugin):
index_count = 0
side_count = 0
index_count += 1
medium_count = 1 if medium_count == 0 else medium_count
track.medium, track.medium_index = medium_count, index_count
# Get `disctitle` from Discogs index tracks. Assume that an index track