diff --git a/streamrip/clients.py b/streamrip/clients.py index 4e0f9ad..6b478fa 100644 --- a/streamrip/clients.py +++ b/streamrip/clients.py @@ -150,6 +150,9 @@ class QobuzClient(ClientInterface): self.secrets = kwargs["secrets"] self.session = requests.Session() + # for multithreading + adapter = requests.adapters.HTTPAdapter(pool_connections=100, pool_maxsize=100) + self.session.mount('https://', adapter) self.session.headers.update( { "User-Agent": AGENT, diff --git a/streamrip/downloader.py b/streamrip/downloader.py index 0d10919..9603eda 100644 --- a/streamrip/downloader.py +++ b/streamrip/downloader.py @@ -608,7 +608,6 @@ class Tracklist(list): if kwargs.get("concurrent_downloads", True): processes = [] - print(kwargs) for item in self: proc = threading.Thread(target=target, args=(item,), kwargs=kwargs) proc.start()