mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix kodi companion popup
This commit is contained in:
parent
3ecbaedbb9
commit
b15160f57a
1 changed files with 10 additions and 8 deletions
|
@ -198,14 +198,16 @@ class Library(threading.Thread):
|
|||
Views().get_nodes()
|
||||
|
||||
try:
|
||||
if settings('kodiCompanion.bool'):
|
||||
for plugin in self.server['api'].get_plugins():
|
||||
if plugin['Name'] in ("Emby.Kodi Sync Queue", "Kodi companion"):
|
||||
fast_sync = True
|
||||
if not settings('kodiCompanion.bool') and settings('SyncInstallRunDone.bool'):
|
||||
return True
|
||||
|
||||
break
|
||||
else:
|
||||
raise LibraryException('CompanionMissing')
|
||||
for plugin in self.server['api'].get_plugins():
|
||||
if plugin['Name'] in ("Emby.Kodi Sync Queue", "Kodi companion"):
|
||||
fast_sync = True
|
||||
|
||||
break
|
||||
else:
|
||||
raise LibraryException('CompanionMissing')
|
||||
|
||||
if settings('SyncInstallRunDone.bool'):
|
||||
if fast_sync and not self.fast_sync():
|
||||
|
@ -231,7 +233,7 @@ class Library(threading.Thread):
|
|||
elif error.status == 'CompanionMissing':
|
||||
|
||||
dialog("ok", heading="{emby}", line1=_(33099))
|
||||
settings('SyncInstallRunDone.bool', True)
|
||||
settings('kodiCompanion.bool', False)
|
||||
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue