mirror of
https://github.com/beetbox/beets.git
synced 2025-12-20 07:34:28 +01:00
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:
parent
fc9f061574
commit
373cf19f8b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue