Fixed ID3 date tag following specification

https://id3.org/id3v2.3.0#TDAT
Fixes #50
This commit is contained in:
RemixDev 2020-09-19 10:27:58 +02:00
parent 3e0ebc804b
commit 0eb7390ce3
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def tagID3(stream, track, save):
if save['year']: if save['year']:
tag.add(TYER(text=str(track.date['year']))) tag.add(TYER(text=str(track.date['year'])))
if save['date']: if save['date']:
tag.add(TDAT(text=str(track.date['month']) + str(track.date['day']))) tag.add(TDAT(text=str(track.date['day']) + str(track.date['month'])))
if save['length']: if save['length']:
tag.add(TLEN(text=str(int(track.duration)*1000))) tag.add(TLEN(text=str(int(track.duration)*1000)))
if save['bpm']: if save['bpm']: