jellyfin-kodi/contextmenu.py

38 lines
1.1 KiB
Python
Raw Normal View History

2016-04-04 21:21:05 +00:00
# -*- coding: utf-8 -*-
#################################################################################################
import logging
2016-04-04 21:21:05 +00:00
import os
import sys
import xbmc
import xbmcaddon
2016-06-19 18:30:54 +00:00
#################################################################################################
2016-10-28 05:02:47 +00:00
_ADDON = xbmcaddon.Addon(id='plugin.video.emby')
_CWD = _ADDON.getAddonInfo('path').decode('utf-8')
_BASE_LIB = xbmc.translatePath(os.path.join(_CWD, 'resources', 'lib')).decode('utf-8')
sys.path.append(_BASE_LIB)
2016-06-19 18:30:54 +00:00
#################################################################################################
2016-04-04 21:21:05 +00:00
2016-10-28 05:02:47 +00:00
import loghandler
from context_entry import ContextMenu
#################################################################################################
loghandler.config()
log = logging.getLogger("EMBY.contextmenu")
2016-04-04 21:21:05 +00:00
2016-06-20 00:24:42 +00:00
#################################################################################################
2016-04-04 21:21:05 +00:00
2016-10-28 05:02:47 +00:00
if __name__ == "__main__":
2016-10-28 05:02:47 +00:00
try:
# Start the context menu
ContextMenu()
except Exception as error:
log.exception(error)