Fixed download bug for artists and multiple links
This commit is contained in:
parent
b825f00a35
commit
805dafd510
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "1.2.3"
|
__version__ = "1.2.4"
|
||||||
|
|
|
@ -345,6 +345,7 @@ class QueueManager:
|
||||||
|
|
||||||
if type(queueItem) is list:
|
if type(queueItem) is list:
|
||||||
ogLen = len(self.queue)
|
ogLen = len(self.queue)
|
||||||
|
slimmedItems = []
|
||||||
for x in queueItem:
|
for x in queueItem:
|
||||||
if isinstance(x, QueueError):
|
if isinstance(x, QueueError):
|
||||||
logger.error(f"[{x.link}] {x.message}")
|
logger.error(f"[{x.link}] {x.message}")
|
||||||
|
@ -355,8 +356,11 @@ class QueueManager:
|
||||||
self.queue.append(x.uuid)
|
self.queue.append(x.uuid)
|
||||||
self.queueList[x.uuid] = x
|
self.queueList[x.uuid] = x
|
||||||
logger.info(f"[{x.uuid}] Added to queue.")
|
logger.info(f"[{x.uuid}] Added to queue.")
|
||||||
if ogLen <= len(self.queue):
|
slimmedItems.append(x.getSlimmedItem())
|
||||||
|
if len(self.queue) <= ogLen:
|
||||||
return False
|
return False
|
||||||
|
if interface:
|
||||||
|
interface.send("addedToQueue", slimmedItems)
|
||||||
else:
|
else:
|
||||||
if isinstance(queueItem, QueueError):
|
if isinstance(queueItem, QueueError):
|
||||||
logger.error(f"[{x.link}] {x.message}")
|
logger.error(f"[{x.link}] {x.message}")
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="1.2.3",
|
version="1.2.4",
|
||||||
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