From 07bdca459952b2c85f12ca8a5cdd3ce68e1aef8d Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 5 Jul 2021 18:11:17 +0200 Subject: [PATCH] Made artist download work --- deemix/__main__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deemix/__main__.py b/deemix/__main__.py index 7885794..f740cf0 100644 --- a/deemix/__main__.py +++ b/deemix/__main__.py @@ -50,7 +50,12 @@ def download(url, bitrate, portable, path): for link in links: downloadObject = generateDownloadObject(dz, link, bitrate) - Downloader(dz, downloadObject, settings).start() + if isinstance(downloadObject, list): + for obj in downloadObject: + Downloader(dz, obj, settings).start() + else: + Downloader(dz, downloadObject, settings).start() + if path is not None: if path == '': path = '.'