jellyfin-kodi/default.py

39 lines
1.0 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
#################################################################################################
2018-09-06 08:36:32 +00:00
import logging
import os
import sys
import xbmc
import xbmcaddon
#################################################################################################
__addon__ = xbmcaddon.Addon(id='plugin.video.emby').getAddonInfo('path').decode('utf-8')
__base__ = xbmc.translatePath(os.path.join(__addon__, 'resources', 'lib')).decode('utf-8')
sys.path.append(__base__)
#################################################################################################
from entrypoint import Events
#################################################################################################
LOG = logging.getLogger("EMBY.default")
#################################################################################################
if __name__ == "__main__":
2018-09-06 19:41:02 +00:00
LOG.debug("--->[ default ]")
2018-09-06 08:36:32 +00:00
try:
Events()
except Exception as error:
LOG.exception(error)
LOG.info("---<[ default ]")