mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Prevent error from creating nodes
The addon automatically creates nodes at startup with prefilled information. Prevent errors in the event something goes wrong. It will fix itself down the line, after user has logged in.
This commit is contained in:
parent
40ac4a0e8c
commit
313585efff
1 changed files with 7 additions and 4 deletions
|
@ -70,14 +70,17 @@ class Service(xbmc.Monitor):
|
||||||
LOG.warn("Log Level: %s", self.settings['log_level'])
|
LOG.warn("Log Level: %s", self.settings['log_level'])
|
||||||
|
|
||||||
self.check_version()
|
self.check_version()
|
||||||
|
|
||||||
verify_kodi_defaults()
|
verify_kodi_defaults()
|
||||||
Views().get_nodes()
|
|
||||||
window('emby.connected.bool', True)
|
|
||||||
|
|
||||||
xbmc.Monitor.__init__(self)
|
try:
|
||||||
|
Views().get_nodes()
|
||||||
|
except Exception as error:
|
||||||
|
LOG.error(error)
|
||||||
|
|
||||||
|
window('emby.connected.bool', True)
|
||||||
self.check_update()
|
self.check_update()
|
||||||
settings('groupedSets.bool', objects.utils.get_grouped_set())
|
settings('groupedSets.bool', objects.utils.get_grouped_set())
|
||||||
|
xbmc.Monitor.__init__(self)
|
||||||
|
|
||||||
def service(self):
|
def service(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue