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:
parent
f4407490c1
commit
d1397722e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue