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'])
|
tag["DISCTOTAL"] = str(track['album']['discTotal'])
|
||||||
if save['genre']:
|
if save['genre']:
|
||||||
tag["GENRE"] = track['album']['genre']
|
tag["GENRE"] = track['album']['genre']
|
||||||
if save['year']:
|
|
||||||
tag["YEAR"] = str(track['date']['year'])
|
|
||||||
if save['date']:
|
if save['date']:
|
||||||
tag["DATE"] = track['dateString']
|
tag["DATE"] = track['dateString']
|
||||||
|
elif save['year']:
|
||||||
|
tag["YEAR"] = str(track['date']['year'])
|
||||||
if save['length']:
|
if save['length']:
|
||||||
tag["LENGTH"] = str(track['duration'])
|
tag["LENGTH"] = str(track['duration'])
|
||||||
if save['bpm']:
|
if save['bpm']:
|
||||||
|
|
Loading…
Reference in New Issue