From 8066db186224594e813fef817f14503c8b934aa1 Mon Sep 17 00:00:00 2001 From: nathom Date: Mon, 12 Apr 2021 10:18:42 -0700 Subject: [PATCH] Remove print statement and urllib3 warnings --- streamrip/clients.py | 3 +++ streamrip/downloader.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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()