From 2c9ed02394f66bf97e74d35e3fe02d0fbb2fd2fe Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 31 Jan 2021 22:38:29 +0100 Subject: [PATCH] Fixed lyrics download and version bump to 2.0.13 --- deemix/__init__.py | 2 +- deemix/app/downloadjob.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index c1d3694..e9d4225 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,6 +1,6 @@ #!/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) " \ "Chrome/79.0.3945.130 Safari/537.36" VARIOUS_ARTISTS = "5080" diff --git a/deemix/app/downloadjob.py b/deemix/app/downloadjob.py index 105559a..f0e08b4 100644 --- a/deemix/app/downloadjob.py +++ b/deemix/app/downloadjob.py @@ -450,10 +450,10 @@ class DownloadJob: writepath = filepath / f"{filename}{extensions[track.selectedFormat]}" # 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]: 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() diff --git a/setup.py b/setup.py index 2547d92..ba2f5b9 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="2.0.12", + version="2.0.13", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",