From 12302b2e564e8cb53ce27185713d3035fb9cc507 Mon Sep 17 00:00:00 2001 From: spl0k Date: Mon, 10 Jun 2013 16:51:21 +0200 Subject: [PATCH] Scanner: look for the date in multiple id3 frames --- scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner.py b/scanner.py index c1e9709..459a8d0 100755 --- a/scanner.py +++ b/scanner.py @@ -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)