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:
Adrian Sampson 2016-06-28 20:34:04 -07:00
parent 44e0e44108
commit f46bfdf219

View file

@ -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)