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.
This commit is contained in:
Broque Thomas 2026-03-31 12:44:40 -07:00
parent f4407490c1
commit d1397722e2

View file

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