mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-23 16:40:31 +00:00
Change companion detection to endpoint check #23
This commit is contained in:
parent
d7087808b7
commit
9a9b84c66c
2 changed files with 8 additions and 3 deletions
|
@ -238,6 +238,13 @@ class API(object):
|
|||
def get_plugins(self):
|
||||
return self._get("Plugins")
|
||||
|
||||
def check_companion_installed(self):
|
||||
try:
|
||||
self._get("/Jellyfin.Plugin.KodiSyncQueue/GetServerDateTime")
|
||||
return True
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
def get_seasons(self, show_id):
|
||||
return self.shows("/%s/Seasons" % show_id, params={
|
||||
'UserId': "{UserId}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue