From a1e78401231e9e33f825915dd2de2e3596b0d2be Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sat, 22 Aug 2020 20:57:02 +0200 Subject: [PATCH] Fixed Explicit tag --- deemix/__init__.py | 2 +- deemix/app/track.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index 5272cbd..757710e 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.2.8" +__version__ = "1.2.9" diff --git a/deemix/app/track.py b/deemix/app/track.py index 556b51c..45a3e8b 100644 --- a/deemix/app/track.py +++ b/deemix/app/track.py @@ -145,7 +145,7 @@ class Track: def parseData(self, dz, settings, trackAPI_gw, trackAPI, albumAPI_gw, albumAPI): self.discNumber = trackAPI_gw.get('DISK_NUMBER') - self.explicit = trackAPI_gw.get('EXPLICIT_LYRICS') + self.explicit = bool(int(trackAPI_gw.get('EXPLICIT_LYRICS') or "0")) self.copyright = trackAPI_gw.get('COPYRIGHT') self.replayGain = "" if 'GAIN' in trackAPI_gw: diff --git a/setup.py b/setup.py index dc7546c..661f5bb 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="1.2.8", + version="1.2.9", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",