Exclude year if date is saved on flac files
This commit is contained in:
parent
388ea1e8a1
commit
4c70e2a1bd
|
@ -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']:
|
||||
|
|
Loading…
Reference in New Issue