mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-08-14 09:36:31 +00:00
Add dynamic package support
And a few other fixes
This commit is contained in:
parent
77843c7f1d
commit
a18fa90f13
7 changed files with 56 additions and 95 deletions
|
@ -5,6 +5,10 @@
|
|||
import logging
|
||||
import sys
|
||||
|
||||
import xbmc
|
||||
import xbmcvfs
|
||||
|
||||
import objects
|
||||
from helper import loghandler
|
||||
from emby import Emby
|
||||
|
||||
|
@ -17,9 +21,17 @@ LOG = logging.getLogger('EMBY.entrypoint')
|
|||
#################################################################################################
|
||||
|
||||
try:
|
||||
sys.path.insert(0, xbmc.translatePath('special://temp/emby/').decode('utf-8'))
|
||||
temp = xbmc.translatePath('special://temp/emby').decode('utf-8')
|
||||
|
||||
if not xbmcvfs.exists(temp):
|
||||
xbmcvfs.mkdir(temp)
|
||||
|
||||
sys.path.insert(0, temp)
|
||||
reload(objects)
|
||||
except Exception as error:
|
||||
LOG.debug('No objects not found, using default.')
|
||||
|
||||
LOG.error(error)
|
||||
LOG.warn('No objects not found, using default.')
|
||||
|
||||
from default import Events
|
||||
from service import Service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue