From 126f1ae81c3efd18949fe3498756f3e7806fcbba Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 3 Mar 2016 15:37:12 +0100 Subject: [PATCH] Disable context menu --- addon.xml | 7 ------- contextmenu.py | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/addon.xml b/addon.xml index a91696b9..cf14026e 100644 --- a/addon.xml +++ b/addon.xml @@ -15,13 +15,6 @@ - - - - Settings for the Emby Server - [!IsEmpty(ListItem.DBID) + !StringCompare(ListItem.DBID,-1)] | !IsEmpty(ListItem.Property(embyid)) - - all en diff --git a/contextmenu.py b/contextmenu.py index 891cd5e1..66256dca 100644 --- a/contextmenu.py +++ b/contextmenu.py @@ -24,7 +24,7 @@ import read_embyserver as embyserver import embydb_functions as embydb import kodidb_functions as kodidb import musicutils as musicutils -import PlexAPI +import api def logMsg(msg, lvl=1): utils.logMsg("%s %s" % ("EMBY", "Contextmenu"), msg, lvl) @@ -57,7 +57,7 @@ if __name__ == '__main__': if embyid: item = emby.getItem(embyid) - API = PlexAPI.API(item) + API = api.API(item) userdata = API.getUserData() likes = userdata['Likes'] favourite = userdata['Favorite'] @@ -83,7 +83,7 @@ if __name__ == '__main__': options.append(utils.language(30407)) #delete item - # options.append(utils.language(30409)) + options.append(utils.language(30409)) #addon settings options.append(utils.language(30408))