mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
Improve singleton disambiguation string
When available, display e.g: - Track Index as "Index 2" - Alternative Track name as "Track A2"
This commit is contained in:
parent
0630f4a263
commit
106a1638cc
1 changed files with 6 additions and 0 deletions
|
|
@ -215,6 +215,12 @@ def disambig_string(info):
|
|||
if info.albumstatus == 'Pseudo-Release':
|
||||
disambig.append(info.albumstatus)
|
||||
|
||||
if isinstance(info, hooks.TrackInfo):
|
||||
if info.index:
|
||||
disambig.append("Index {}".format(str(info.index)))
|
||||
if info.track_alt:
|
||||
disambig.append("Track {}".format(info.track_alt))
|
||||
|
||||
if disambig:
|
||||
return ', '.join(disambig)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue