Ejemplo n.º 1
0
def main():
    # Check we have an ip and port configured.
    addon = xbmcaddon.Addon()
    if addon.getSetting('ip_address') == '':
        loghelper.log('Missing IP address', 'NOTIFICATION_ERROR')
        addon.openSettings()
    ip_address = addon.getSetting('ip_address')
    port = addon.getSetting('port')

    service.run()
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-

from resources.lib import kodilogging
from resources.lib import service

import logging
import xbmcaddon

# Keep this file to a minimum, as Kodi
# doesn't keep a compiled copy of this
ADDON = xbmcaddon.Addon()
kodilogging.config()

service.run()
Ejemplo n.º 3
0
# -*- coding: utf-8 -*-
"""Service entry point"""

from __future__ import absolute_import, division, unicode_literals

from xbmcaddon import Addon

from resources.lib import kodiutils, kodilogging

# Reinitialise ADDON every invocation to fix an issue that settings are not fresh.
kodiutils.ADDON = Addon()
kodilogging.ADDON = Addon()

if __name__ == '__main__':
    from resources.lib.service import run

    run()
Ejemplo n.º 4
0
# -*- coding: utf-8 -*-

from resources.lib.borntogrill import kodi_logging
from resources.lib import service

# Keep this file to a minimum, as Kodi
# doesn't keep a compiled copy of this

kodi_logging.config()

service.run()
Ejemplo n.º 5
0
# -*- coding: utf-8 -*-

from resources.lib.service import run

run()
Ejemplo n.º 6
0
# -*- coding: utf-8 -*-

from resources.lib import kodilogging, service
import logging
import xbmcaddon
import xbmc

addon = xbmcaddon.Addon()
xbmc.log(addon.getAddonInfo('id'))
kodilogging.config()
logger = logging.getLogger(addon.getAddonInfo('id'))
service.run(addon, logger)