mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-31 13:26:12 +00:00
Companion: check list of installed plugins
instead of only poking the ServerDate plugin endpoint
This commit is contained in:
parent
51d9a4e1cc
commit
16db25e876
2 changed files with 36 additions and 14 deletions
|
@ -343,8 +343,8 @@ class Library(threading.Thread):
|
|||
if settings('SyncInstallRunDone.bool') and settings(
|
||||
'kodiCompanion.bool'
|
||||
):
|
||||
|
||||
if self.server.jellyfin.check_companion_installed():
|
||||
# None == Unknown
|
||||
if self.server.jellyfin.check_companion_installed() is not False:
|
||||
|
||||
if not self.fast_sync():
|
||||
dialog("ok", "{jellyfin}", translate(33128))
|
||||
|
@ -353,8 +353,11 @@ class Library(threading.Thread):
|
|||
|
||||
LOG.info("--<[ retrieve changes ]")
|
||||
|
||||
# is False
|
||||
else:
|
||||
raise LibraryException('CompanionMissing')
|
||||
dialog("ok", "{jellyfin}", translate(33099))
|
||||
settings("kodiCompanion.bool", False)
|
||||
return True
|
||||
|
||||
return True
|
||||
except LibraryException as error:
|
||||
|
@ -370,13 +373,6 @@ class Library(threading.Thread):
|
|||
|
||||
return True
|
||||
|
||||
elif error.status == 'CompanionMissing':
|
||||
|
||||
dialog("ok", "{jellyfin}", translate(33099))
|
||||
settings('kodiCompanion.bool', False)
|
||||
|
||||
return True
|
||||
|
||||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue