mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Result is already unpacked
This commit is contained in:
parent
16db25e876
commit
7b2051f883
1 changed files with 16 additions and 18 deletions
|
@ -264,27 +264,25 @@ class API(object):
|
||||||
False = Not installed, scheduled for uninstalling or disabled
|
False = Not installed, scheduled for uninstalling or disabled
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
res = self.get_plugins() # type: requests.Response
|
kodi_sync_queue = [
|
||||||
if res.ok:
|
x
|
||||||
kodi_sync_queue = [
|
for x in self.get_plugins()
|
||||||
x
|
if x.get("Id") == "771e19d653854cafb35c28a0e865cf63"
|
||||||
for x in res.json()
|
]
|
||||||
if x.get("Id") == "771e19d653854cafb35c28a0e865cf63"
|
|
||||||
]
|
|
||||||
|
|
||||||
LOG.debug("KodiSyncQueue Plugins result: %s", kodi_sync_queue)
|
LOG.debug("KodiSyncQueue Plugins result: %s", kodi_sync_queue)
|
||||||
|
|
||||||
kodi_sync_queue_filtered = [
|
kodi_sync_queue_filtered = [
|
||||||
x
|
x
|
||||||
for x in kodi_sync_queue
|
for x in kodi_sync_queue
|
||||||
if x.get("Status")
|
if x.get("Status")
|
||||||
in ["Active", "Restart", "Malfunctioned", "NotSupported"]
|
in ["Active", "Restart", "Malfunctioned", "NotSupported"]
|
||||||
]
|
]
|
||||||
|
|
||||||
if kodi_sync_queue_filtered:
|
if kodi_sync_queue_filtered:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
except requests.RequestException as e:
|
except requests.RequestException as e:
|
||||||
LOG.warning("Error checking companion installed state: %s", e)
|
LOG.warning("Error checking companion installed state: %s", e)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue