Changed ID3 length tag from seconds to milliseconds

This commit is contained in:
RemixDev 2020-06-14 21:15:32 +02:00
parent aac20fbc02
commit 2cce36f82d
2 changed files with 2 additions and 2 deletions

View File

@ -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']:

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup(
name="deemix",
version="1.0.20",
version="1.0.21",
description="A barebone deezer downloader library",
long_description=README,
long_description_content_type="text/markdown",