From f46bfdf219475d78f82d56098ada319bca87be80 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 28 Jun 2016 20:34:04 -0700 Subject: [PATCH] Fix index display with per_disc_numbering If `medium_index` is missing, as it is from the Beatport source, the display would show "None" instead of the global index (a fallback). This is half of the problem in #2085. --- beets/ui/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index c352fe53d..d518ed017 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -237,7 +237,7 @@ def show_change(cur_artist, cur_album, match): if mediums > 1: return u'{0}-{1}'.format(medium, medium_index) else: - return six.text_type(medium_index) + return six.text_type(medium_index or index) else: return six.text_type(index)