mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-27 03:06:10 +00:00
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:
commit
04551f7925
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ class API(object):
|
||||||
return self.sessions("/Capabilities/Full", "POST", json=data)
|
return self.sessions("/Capabilities/Full", "POST", json=data)
|
||||||
|
|
||||||
def session_add_user(self, session_id, user_id, option=True):
|
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):
|
def session_playing(self, data):
|
||||||
return self.sessions("/Playing", "POST", json=data)
|
return self.sessions("/Playing", "POST", json=data)
|
||||||
|
|
Loading…
Reference in a new issue