Actually fix kodi companion prompt

This commit is contained in:
angelblue05 2018-09-10 00:40:04 -05:00
parent 340d6887d0
commit 05c755ac21

View file

@ -201,13 +201,14 @@ class Library(threading.Thread):
if not settings('kodiCompanion.bool') and settings('SyncInstallRunDone.bool'): if not settings('kodiCompanion.bool') and settings('SyncInstallRunDone.bool'):
return True return True
for plugin in self.server['api'].get_plugins(): if settings('kodiCompanion.bool'):
if plugin['Name'] in ("Emby.Kodi Sync Queue", "Kodi companion"): for plugin in self.server['api'].get_plugins():
fast_sync = True if plugin['Name'] in ("Emby.Kodi Sync Queue", "Kodi companion"):
fast_sync = True
break break
else: else:
raise LibraryException('CompanionMissing') 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():