Fixed ACK check for artists

This commit is contained in:
RemixDev 2020-09-18 18:52:05 +02:00
parent 290c55c509
commit 85436d1eb7
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env python3
__version__ = "1.3.9"
__version__ = "1.3.10"

View File

@ -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:

View File

@ -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",