mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Merge nested if condition
This commit is contained in:
parent
e7e6fbdd31
commit
5e188e63dd
1 changed files with 10 additions and 9 deletions
|
@ -341,20 +341,21 @@ class Library(threading.Thread):
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if settings('SyncInstallRunDone.bool'):
|
if settings('SyncInstallRunDone.bool') and settings(
|
||||||
if settings('kodiCompanion.bool'):
|
'kodiCompanion.bool'
|
||||||
|
):
|
||||||
|
|
||||||
if self.server.jellyfin.check_companion_installed():
|
if self.server.jellyfin.check_companion_installed():
|
||||||
|
|
||||||
if not self.fast_sync():
|
if not self.fast_sync():
|
||||||
dialog("ok", "{jellyfin}", translate(33128))
|
dialog("ok", "{jellyfin}", translate(33128))
|
||||||
|
|
||||||
raise Exception("Failed to retrieve latest updates")
|
raise Exception("Failed to retrieve latest updates")
|
||||||
|
|
||||||
LOG.info("--<[ retrieve changes ]")
|
LOG.info("--<[ retrieve changes ]")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise LibraryException('CompanionMissing')
|
raise LibraryException('CompanionMissing')
|
||||||
|
|
||||||
return True
|
return True
|
||||||
except LibraryException as error:
|
except LibraryException as error:
|
||||||
|
|
Loading…
Reference in a new issue