forked from mediathekview/plugin.video.mediathekview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.py
31 lines (26 loc) · 991 Bytes
/
service.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
"""
The main service module
MIT License
Copyright (c) 2017-2020, Leo Moll
"""
# -- Imports ------------------------------------------------
from resources.lib.service import MediathekViewService
import resources.lib.appContext as appContext
from resources.lib.loggerKodi import LoggerKodi
from resources.lib.settingsKodi import SettingsKodi
from resources.lib.notifierKodi import NotifierKodi
import xbmcaddon
# -- Main Code ----------------------------------------------
if __name__ == '__main__':
appContext.init()
appContext.initAddon(xbmcaddon.Addon())
appContext.initLogger(LoggerKodi(appContext.ADDONCLASS.getAddonInfo('id'), appContext.ADDONCLASS.getAddonInfo('version')))
appContext.initSettings(SettingsKodi(appContext.ADDONCLASS))
appContext.initNotifier(NotifierKodi(appContext.ADDONCLASS))
SERVICE = MediathekViewService()
SERVICE.init()
SERVICE.run()
SERVICE.exit()
del SERVICE