diff --git a/resources/lib/entrypoint/service.py b/resources/lib/entrypoint/service.py index 008bfe99..19a2feb4 100644 --- a/resources/lib/entrypoint/service.py +++ b/resources/lib/entrypoint/service.py @@ -140,7 +140,7 @@ class Service(xbmc.Monitor): try: versions = requests.get('http://kodi.emby.media/Public%20testing/Dependencies/databases.json').json() - build = find(versions, kodi.lower()) + build = find(versions, kodi) if not build: raise Exception("build %s incompatible?!" % kodi) diff --git a/resources/lib/helper/wrapper.py b/resources/lib/helper/wrapper.py index 76526892..f3cd8405 100644 --- a/resources/lib/helper/wrapper.py +++ b/resources/lib/helper/wrapper.py @@ -111,7 +111,7 @@ def library_check(): if 'e_item' in kwargs: try: - view_id = kwargs['e_item'][7] + view_id = kwargs['e_item'][6] view_name = self.emby_db.get_view_name(view_id) view = {'Name': view_name, 'Id': view_id} except Exception: @@ -119,7 +119,7 @@ def library_check(): if view is None: ancestors = self.server['api'].get_ancestors(item['Id']) - + if not ancestors: return