Kodi Community Forum
How to exclude thumbnail folder from Kodi add-on? - 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: Picture Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=150)
+---- Thread: How to exclude thumbnail folder from Kodi add-on? (/showthread.php?tid=372421)



How to exclude thumbnail folder from Kodi add-on? - JohanBellri - 2023-03-09

I am developing a Kodi add-on to clean thumbnails and cache, but when I execute it, it deletes all the generated picture thumbnails, requiring me to regenerate them using the context menu. Is there a specific folder that Kodi uses to store picture thumbnails, such as ...\userdata\Thumbnails??, which I can exclude from the cleaning process? Alternatively, are the thumbnails dispersed across all folders? I have the same question for add-on icons. Is there a script or method that I can use to automatically regenerate the thumbnails? Any advice or recommendations would be greatly appreciated.


RE: How to exclude thumbnail folder from Kodi add-on? - Klojum - 2023-03-09

There already are add-ons is an external script for cleaning thumbnails, just not for photos/pictures yet.

You may want to look into:
- Texture Cache Maintenance utility: https://forum.kodi.tv/showthread.php?tid=158373&highlight=texture+cache
It's an external script that, amongst other things, handles cached thumbnails.

There should be a Python-3 version available here: https://forum.kodi.tv/showthread.php?tid=272112 , not sure if it's also updated to Nexus standards yet.


RE: How to exclude thumbnail folder from Kodi add-on? - sarbes - 2023-03-09

All cached textures are stored in /userdata/Thumbnails. They should not be messed with by add-ons in the first place, especially if the add-on has no context of their purpose.

What do you want to achieve here?