mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 12:35:19 +01:00
per_disc_numbering: fall back to global indices
If the per-medium values aren't available, use the global numbers.
This commit is contained in:
parent
fac13a041e
commit
9f87870a84
1 changed files with 2 additions and 2 deletions
|
|
@ -197,8 +197,8 @@ def apply_metadata(album_info, mapping):
|
|||
item.title = track_info.title
|
||||
|
||||
if config['per_disc_numbering']:
|
||||
item.track = track_info.medium_index
|
||||
item.tracktotal = track_info.medium_total
|
||||
item.track = track_info.medium_index or track_info.index
|
||||
item.tracktotal = track_info.medium_total or len(album_info.tracks)
|
||||
else:
|
||||
item.track = track_info.index
|
||||
item.tracktotal = len(album_info.tracks)
|
||||
|
|
|
|||
Loading…
Reference in a new issue