Exclude year if date is saved on flac files

This commit is contained in:
RemixDev 2020-05-05 15:10:48 +02:00
parent 388ea1e8a1
commit 4c70e2a1bd
1 changed files with 2 additions and 2 deletions

View File

@ -97,10 +97,10 @@ def tagFLAC(stream, track, save):
tag["DISCTOTAL"] = str(track['album']['discTotal'])
if save['genre']:
tag["GENRE"] = track['album']['genre']
if save['year']:
tag["YEAR"] = str(track['date']['year'])
if save['date']:
tag["DATE"] = track['dateString']
elif save['year']:
tag["YEAR"] = str(track['date']['year'])
if save['length']:
tag["LENGTH"] = str(track['duration'])
if save['bpm']: