Fixing issue with DBus Playlist interface
This commit is contained in:
@@ -87,7 +87,7 @@ class Server:
|
||||
def _subsonic_error_to_exception(self, error) -> Exception:
|
||||
return Exception(f'{error.code}: {error.message}')
|
||||
|
||||
def _get(self, url, **params):
|
||||
def _get(self, url, timeout=(3.05, 2), **params):
|
||||
params = {**self._get_params(), **params}
|
||||
print(f'[START] get: {url}')
|
||||
|
||||
@@ -100,6 +100,7 @@ class Server:
|
||||
url,
|
||||
params=params,
|
||||
verify=not self.disable_cert_verify,
|
||||
timeout=timeout,
|
||||
)
|
||||
# TODO make better
|
||||
if result.status_code != 200:
|
||||
|
Reference in New Issue
Block a user