Disable context menu
This commit is contained in:
parent
4e44579c1f
commit
126f1ae81c
2 changed files with 3 additions and 10 deletions
|
@ -15,13 +15,6 @@
|
|||
</extension>
|
||||
<extension point="xbmc.service" library="service.py" start="login">
|
||||
</extension>
|
||||
<extension point="kodi.context.item" library="contextmenu.py">
|
||||
<item>
|
||||
<label>30401</label>
|
||||
<description>Settings for the Emby Server</description>
|
||||
<visible>[!IsEmpty(ListItem.DBID) + !StringCompare(ListItem.DBID,-1)] | !IsEmpty(ListItem.Property(embyid))</visible>
|
||||
</item>
|
||||
</extension>
|
||||
<extension point="xbmc.addon.metadata">
|
||||
<platform>all</platform>
|
||||
<language>en</language>
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue