1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00

Scanner: look for the date in multiple id3 frames

This commit is contained in:
spl0k 2013-06-10 16:51:21 +02:00
parent 3eee7416ea
commit 12302b2e56

View File

@ -67,7 +67,7 @@ class Scanner:
tr.disc = tag.disc_num[0] or 1
tr.number = tag.track_num[0] or 1
tr.title = tag.title
tr.year = tag.release_date.year if tag.release_date else None
tr.year = tag.best_release_date.year if tag.best_release_date else None
tr.genre = tag.genre.name if tag.genre else None
tr.duration = info.time_secs
tr.album = self.__find_album(tag.artist, tag.album)