mirror of
https://github.com/beetbox/beets.git
synced 2026-02-09 08:52:30 +01:00
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.
This commit is contained in:
parent
44e0e44108
commit
f46bfdf219
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue