mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-11 02:46:34 +00:00
The way the logging was initialized varied from file to file. This just updates the init to be the same everywhere. Also updates some LOG.warn to be LOG.info.
41 lines
1.2 KiB
Python
41 lines
1.2 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'), 'resources', 'lib')).decode('utf-8')
|
|
__libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8')
|
|
|
|
sys.path.insert(0, __libraries__)
|
|
sys.path.insert(0, __base__)
|
|
|
|
#################################################################################################
|
|
|
|
from entrypoint import Context
|
|
|
|
#################################################################################################
|
|
|
|
LOG = logging.getLogger("JELLYFIN." + __name__)
|
|
|
|
#################################################################################################
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
LOG.debug("--->[ context ]")
|
|
|
|
try:
|
|
Context()
|
|
except Exception as error:
|
|
LOG.exception(error)
|
|
|
|
LOG.info("---<[ context ]")
|