Skip to content

Commit

Permalink
Merge pull request #768 from disconn3ct/fix/381-login-timeout
Browse files Browse the repository at this point in the history
Increase login timeout to 10s
  • Loading branch information
oddstr13 authored Sep 21, 2023
2 parents bdd800a + 36a03c0 commit 18b785c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jellyfin_kodi/jellyfin/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def login(self, server_url, username, password=""):

try:
LOG.info("Trying to login to %s/%s as %s" % (server_url, path, username))
response = self.send_request(server_url, path, method="post", headers=headers, data=json.dumps(auth_data))
response = self.send_request(server_url, path, method="post", timeout=10, headers=headers, data=json.dumps(auth_data))

if response.status_code == 200:
return response.json()
Expand Down

0 comments on commit 18b785c

Please sign in to comment.