mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Small service adjustment
This commit is contained in:
parent
c3fbdf082c
commit
58e02cfbb7
2 changed files with 5 additions and 15 deletions
|
@ -14,6 +14,7 @@ import xbmcvfs
|
||||||
import emby_db
|
import emby_db
|
||||||
from helper.utils import delete_folder
|
from helper.utils import delete_folder
|
||||||
from helper import _, settings, window, dialog
|
from helper import _, settings, window, dialog
|
||||||
|
from objects import obj
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
|
@ -21,15 +22,6 @@ LOG = logging.getLogger("EMBY."+__name__)
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
try:
|
|
||||||
from objects import obj
|
|
||||||
except Exception as error:
|
|
||||||
# clear patch
|
|
||||||
LOG.exception(error)
|
|
||||||
delete_folder()
|
|
||||||
dialog("ok", heading="{emby}", line1=_(33155))
|
|
||||||
xbmc.executebuiltin('RestartApp')
|
|
||||||
|
|
||||||
|
|
||||||
class Database(object):
|
class Database(object):
|
||||||
|
|
||||||
|
|
10
service.py
10
service.py
|
@ -55,17 +55,13 @@ if __name__ == "__main__":
|
||||||
raise Exception("Aborted during startup delay")
|
raise Exception("Aborted during startup delay")
|
||||||
|
|
||||||
session.service()
|
session.service()
|
||||||
|
|
||||||
break
|
|
||||||
except Exception as error: # TODO, build exceptions
|
except Exception as error: # TODO, build exceptions
|
||||||
|
|
||||||
LOG.exception(error)
|
LOG.exception(error)
|
||||||
session.shutdown()
|
session.shutdown()
|
||||||
|
|
||||||
if 'RestartService' not in error:
|
if 'RestartService' in error:
|
||||||
LOG.warn("--<<[ service ]")
|
continue
|
||||||
|
|
||||||
break
|
|
||||||
|
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
''' Issue initializing the service.
|
''' Issue initializing the service.
|
||||||
|
@ -74,4 +70,6 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
break
|
||||||
|
|
||||||
LOG.warn("--<[ service ]")
|
LOG.warn("--<[ service ]")
|
||||||
|
|
Loading…
Reference in a new issue