Fixed lyrics download and version bump to 2.0.13
This commit is contained in:
parent
e88d05015a
commit
2c9ed02394
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "2.0.12"
|
__version__ = "2.0.13"
|
||||||
USER_AGENT_HEADER = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) " \
|
USER_AGENT_HEADER = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) " \
|
||||||
"Chrome/79.0.3945.130 Safari/537.36"
|
"Chrome/79.0.3945.130 Safari/537.36"
|
||||||
VARIOUS_ARTISTS = "5080"
|
VARIOUS_ARTISTS = "5080"
|
||||||
|
|
|
@ -450,10 +450,10 @@ class DownloadJob:
|
||||||
writepath = filepath / f"{filename}{extensions[track.selectedFormat]}"
|
writepath = filepath / f"{filename}{extensions[track.selectedFormat]}"
|
||||||
|
|
||||||
# Save lyrics in lrc file
|
# Save lyrics in lrc file
|
||||||
if self.settings['syncedLyrics'] and track.lyrics['sync']:
|
if self.settings['syncedLyrics'] and track.lyrics.sync:
|
||||||
if not (filepath / f"{filename}.lrc").is_file() or self.settings['overwriteFile'] in [OverwriteOption.OVERWRITE, OverwriteOption.ONLY_TAGS]:
|
if not (filepath / f"{filename}.lrc").is_file() or self.settings['overwriteFile'] in [OverwriteOption.OVERWRITE, OverwriteOption.ONLY_TAGS]:
|
||||||
with open(filepath / f"{filename}.lrc", 'wb') as f:
|
with open(filepath / f"{filename}.lrc", 'wb') as f:
|
||||||
f.write(track.lyrics['sync'].encode('utf-8'))
|
f.write(track.lyrics.sync.encode('utf-8'))
|
||||||
|
|
||||||
trackAlreadyDownloaded = writepath.is_file()
|
trackAlreadyDownloaded = writepath.is_file()
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="2.0.12",
|
version="2.0.13",
|
||||||
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