Increase Navidrome API timeout from 10s to 60s

Large libraries (first import) can take longer than 10 seconds for
getArtists to respond. The short timeout caused the library fetch
to fail with 0 artists returned.
pull/253/head
Broque Thomas 1 month ago
parent f4407490c1
commit d1397722e2

@ -330,7 +330,7 @@ class NavidromeClient:
if endpoint in self._WRITE_ENDPOINTS:
response = requests.post(url, data=auth_params, timeout=30)
else:
response = requests.get(url, params=auth_params, timeout=10)
response = requests.get(url, params=auth_params, timeout=60)
response.raise_for_status()
data = response.json()

Loading…
Cancel
Save