mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 19:52:16 +00:00
Scanner: fix for tracks without number or disc
This commit is contained in:
parent
6198660765
commit
24cbf47f31
@ -63,8 +63,8 @@ class Scanner:
|
||||
else:
|
||||
tr = tr[0]
|
||||
|
||||
tr.disc = (tag.getDiscNum() or (1, 1))[0]
|
||||
tr.number = tag.getTrackNum()[0]
|
||||
tr.disc = tag.getDiscNum()[0] or 1
|
||||
tr.number = tag.getTrackNum()[0] or 1
|
||||
tr.title = tag.getTitle()
|
||||
tr.year = tag.getYear()
|
||||
tr.genre = tag.getGenre().name if tag.getGenre() else None
|
||||
|
Loading…
Reference in New Issue
Block a user