1
0
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:
Alban 2012-11-15 15:01:48 +01:00 committed by Alban
parent 6198660765
commit 24cbf47f31

View File

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