Changed ID3 length tag from seconds to milliseconds
This commit is contained in:
parent
aac20fbc02
commit
2cce36f82d
|
@ -36,7 +36,7 @@ def tagID3(stream, track, save):
|
|||
if save['date']:
|
||||
tag.add(TDAT(text=str(track['date']['month']) + str(track['date']['day'])))
|
||||
if save['length']:
|
||||
tag.add(TLEN(text=str(track['duration'])))
|
||||
tag.add(TLEN(text=str(int(track['duration'])*1000)))
|
||||
if save['bpm']:
|
||||
tag.add(TBPM(text=str(track['bpm'])))
|
||||
if save['label']:
|
||||
|
|
Loading…
Reference in New Issue