2021-03-18, 20:49
I have created simple addon for local radio stations...
and now i have added to addon.xml 2 items to centext menu
this is working fine but now i want remove all default items from context menu....and only my items will be in context menu
this add to my context menu item Context but how can i run script from /resources/lib/test.py ?
and how can i disable all default items in context menu?
and now i have added to addon.xml 2 items to centext menu
Quote:</extension> <extension point="kodi.context.item"> <menu id="kodi.core.main"> <item library="addToFav.py"> <label>30019</label> <visible>ListItem.Property(IsPlayable)</visible> </item> <item library="removeFav.py"> <label>30020</label> <visible>ListItem.Property(IsPlaylist)</visible> </item> </menu> </extension>
this is working fine but now i want remove all default items from context menu....and only my items will be in context menu
Code:
listitem.addContextMenuItems([('Context', 'RunScript(test.py)')])
this add to my context menu item Context but how can i run script from /resources/lib/test.py ?
and how can i disable all default items in context menu?