Kodi Community Forum
v19 How to set Context Menu item to only appear on "Recently added episodes" widget? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Context Menus (https://forum.kodi.tv/forumdisplay.php?fid=309)
+---- Thread: v19 How to set Context Menu item to only appear on "Recently added episodes" widget? (/showthread.php?tid=369914)



How to set Context Menu item to only appear on "Recently added episodes" widget? - benyjr - 2022-10-05

I've created a Context Menu addon to allow me to refresh the skin on Kodi 19.4.

The addon works well, but its visibility is set to true, so it appears in all context menus.

What visibility condition should I use here:
     <visible>true</visible>

so it only appears when long pressing on items in the "Recently added episodes" widget?


RE: How to set Context Menu item to only appear on "Recently added episodes" widget? - kcook_shield - 2022-10-06

wild guess :

<visible>String.Contains(Container.FolderPath,videodb://recentlyaddedepisodes/)</visible>


RE: How to set Context Menu item to only appear on "Recently added episodes" widget? - benyjr - 2022-10-06

Thanks! I'll try it out and see if it works. I appreciate the suggestion.