jellyfin-kodi/context.py

40 lines
1.0 KiB
Python

# -*- coding: utf-8 -*-
#################################################################################################
import logging
import os
import sys
import xbmc
import xbmcaddon
#################################################################################################
__addon__ = xbmcaddon.Addon(id='plugin.video.jellyfin')
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'jellyfin_kodi')).decode('utf-8')
sys.path.insert(0, __base__)
#################################################################################################
from entrypoint import Context # noqa: F402
#################################################################################################
LOG = logging.getLogger("JELLYFIN.context")
#################################################################################################
if __name__ == "__main__":
LOG.debug("--->[ context ]")
try:
Context()
except Exception as error:
LOG.exception(error)
LOG.info("---<[ context ]")