mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-01-24 17: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()
|
Views().get_nodes()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if settings('kodiCompanion.bool'):
|
if not settings('kodiCompanion.bool') and settings('SyncInstallRunDone.bool'):
|
||||||
for plugin in self.server['api'].get_plugins():
|
return True
|
||||||
if plugin['Name'] in ("Emby.Kodi Sync Queue", "Kodi companion"):
|
|
||||||
fast_sync = True
|
|
||||||
|
|
||||||
break
|
for plugin in self.server['api'].get_plugins():
|
||||||
else:
|
if plugin['Name'] in ("Emby.Kodi Sync Queue", "Kodi companion"):
|
||||||
raise LibraryException('CompanionMissing')
|
fast_sync = True
|
||||||
|
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
raise LibraryException('CompanionMissing')
|
||||||
|
|
||||||
if settings('SyncInstallRunDone.bool'):
|
if settings('SyncInstallRunDone.bool'):
|
||||||
if fast_sync and not self.fast_sync():
|
if fast_sync and not self.fast_sync():
|
||||||
|
@ -231,7 +233,7 @@ class Library(threading.Thread):
|
||||||
elif error.status == 'CompanionMissing':
|
elif error.status == 'CompanionMissing':
|
||||||
|
|
||||||
dialog("ok", heading="{emby}", line1=_(33099))
|
dialog("ok", heading="{emby}", line1=_(33099))
|
||||||
settings('SyncInstallRunDone.bool', True)
|
settings('kodiCompanion.bool', False)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue