diff --git a/addon.xml b/addon.xml index 2c3d4ace..83a172cd 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/connectmanager.py b/resources/lib/connectmanager.py index d05b2b38..df83560e 100644 --- a/resources/lib/connectmanager.py +++ b/resources/lib/connectmanager.py @@ -21,7 +21,7 @@ log = logging.getLogger("EMBY."+__name__) addon = xbmcaddon.Addon(id='plugin.video.emby') STATE = connectionmanager.ConnectionState -XML_PATH = (addon.getAddonInfo('path'), "default", "1080i") +XML_PATH = (addon.getAddonInfo('path'), "default", "1080i", True) ################################################################################################## diff --git a/resources/lib/context_entry.py b/resources/lib/context_entry.py index e21a1a74..5030f587 100644 --- a/resources/lib/context_entry.py +++ b/resources/lib/context_entry.py @@ -73,7 +73,7 @@ class ContextMenu(object): @classmethod def _get_item_type(cls): - item_type = sys.listitem.getVideoInfoTag().getMediaType().decode('utf-8') + item_type = sys.listitem.getVideoInfoTag().getMediaType() if not item_type: @@ -88,7 +88,7 @@ class ContextMenu(object): else: log.info("item_type is unknown") - return item_type + return item_type.decode('utf-8') @classmethod def _get_item_id(cls, kodi_id, item_type):