From 85436d1eb7ebcb576e14cfcb8299d68ee64288e2 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Fri, 18 Sep 2020 18:52:05 +0200 Subject: [PATCH] Fixed ACK check for artists --- deemix/__init__.py | 2 +- deemix/app/queuemanager.py | 9 +++++++-- setup.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index a11dcc4..d5c7374 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.3.9" +__version__ = "1.3.10" diff --git a/deemix/app/queuemanager.py b/deemix/app/queuemanager.py index 9c7245f..1585f99 100644 --- a/deemix/app/queuemanager.py +++ b/deemix/app/queuemanager.py @@ -3,7 +3,7 @@ from deemix.app.downloadjob import DownloadJob from deemix.utils.misc import getIDFromLink, getTypeFromLink, getBitrateInt from deemix.api.deezer import APIError from spotipy.exceptions import SpotifyException -from deemix.app.queueitem import QISingle, QICollection, QIConvertable +from deemix.app.queueitem import QueueItem, QISingle, QICollection, QIConvertable import logging import os.path as path import json @@ -337,7 +337,12 @@ class QueueManager: return False logger.info("Generating queue item for: "+link) item = self.generateQueueItem(dz, link, settings, bitrate, interface=interface) - item.ack = ack; + if type(item) is list: + for i in item: + if isinstance(i, QueueItem): + i.ack = ack + elif isinstance(item, QueueItem): + item.ack = ack return item if type(url) is list: diff --git a/setup.py b/setup.py index 51bcf10..7ad9971 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="1.3.9", + version="1.3.10", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",