Merge pull request #851 from wildsands/645-fix-session_add_user

Call correct API endpoint when adding users to session
This commit is contained in:
Odd Stråbø 2024-04-08 22:41:40 +02:00 committed by GitHub
commit 04551f7925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -336,7 +336,7 @@ class API(object):
return self.sessions("/Capabilities/Full", "POST", json=data)
def session_add_user(self, session_id, user_id, option=True):
return self.sessions("/%s/Users/%s" % (session_id, user_id), "POST" if option else "DELETE")
return self.sessions("/%s/User/%s" % (session_id, user_id), "POST" if option else "DELETE")
def session_playing(self, data):
return self.sessions("/Playing", "POST", json=data)