Beispiel #1
0
    os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8')
__pcache__ = xbmc.translatePath(
    os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')

sys.path.insert(0, __cache__)
sys.path.insert(0, __pcache__)
sys.path.insert(0, __libraries__)
sys.path.append(__base__)

#################################################################################################

from entrypoint import Context

#################################################################################################

LOG = logging.getLogger("EMBY.context")

#################################################################################################

if __name__ == "__main__":

    LOG.debug("--->[ context ]")

    try:
        Context(True)
    except Exception as error:
        LOG.exception(error)

    LOG.info("---<[ context ]")
    os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8')
__pcache__ = xbmc.translatePath(
    os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')

sys.path.insert(0, __cache__)
sys.path.insert(0, __pcache__)
sys.path.insert(0, __libraries__)
sys.path.append(__base__)

#################################################################################################

from entrypoint import Context

#################################################################################################

LOG = logging.getLogger("EMBY.context")

#################################################################################################

if __name__ == "__main__":

    LOG.debug("--->[ context ]")

    try:
        Context(play=True)
    except Exception as error:
        LOG.exception(error)

    LOG.info("---<[ context ]")
Beispiel #3
0
__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.context")

#################################################################################################

if __name__ == "__main__":

    LOG.debug("--->[ context ]")

    try:
        Context()
    except Exception as error:
        LOG.exception(error)

    LOG.info("---<[ context ]")
Beispiel #4
0
    os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8')
__pcache__ = xbmc.translatePath(
    os.path.join(__addon__.getAddonInfo('profile'), 'emby')).decode('utf-8')
__cache__ = xbmc.translatePath('special://temp/emby').decode('utf-8')

sys.path.insert(0, __cache__)
sys.path.insert(0, __pcache__)
sys.path.insert(0, __libraries__)
sys.path.append(__base__)

#################################################################################################

from entrypoint import Context

#################################################################################################

LOG = logging.getLogger("EMBY.context")

#################################################################################################

if __name__ == "__main__":

    LOG.debug("--->[ context ]")

    try:
        Context(transcode=True)
    except Exception as error:
        LOG.exception(error)

    LOG.info("---<[ context ]")