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']:
|
if save['date']:
|
||||||
tag.add(TDAT(text=str(track['date']['month']) + str(track['date']['day'])))
|
tag.add(TDAT(text=str(track['date']['month']) + str(track['date']['day'])))
|
||||||
if save['length']:
|
if save['length']:
|
||||||
tag.add(TLEN(text=str(track['duration'])))
|
tag.add(TLEN(text=str(int(track['duration'])*1000)))
|
||||||
if save['bpm']:
|
if save['bpm']:
|
||||||
tag.add(TBPM(text=str(track['bpm'])))
|
tag.add(TBPM(text=str(track['bpm'])))
|
||||||
if save['label']:
|
if save['label']:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="1.0.20",
|
version="1.0.21",
|
||||||
description="A barebone deezer downloader library",
|
description="A barebone deezer downloader library",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in New Issue