Remove print statement and urllib3 warnings

This commit is contained in:
nathom 2021-04-12 10:18:42 -07:00
parent 839e7ef27c
commit 8066db1862
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -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()