From 373cf19f8bbe5b445edf0829c5a6ed23b0cf7ed2 Mon Sep 17 00:00:00 2001 From: kooimens Date: Tue, 3 Nov 2015 19:57:05 +0100 Subject: [PATCH] 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. --- beetsplug/discogs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 90aefba10..97834c500 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -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