Clean up the Thumbnails folder - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: Clean up the Thumbnails folder (/showthread.php?tid=96097) |
Clean up the Thumbnails folder - bradvido88 - 2011-03-06 This tool does not work for XBMC Frodo or greater. Please use the excellent Texture Cache Maintenance Utility ***See 2nd post for my script to clean up unused thumbnails and fanart*** My Thumbnails folder is growing larger and larger. I'm guessing a lot of the images in there are no longer used, as i have a pretty high turn-around rate for my library content. Is there any standard way to determine which images in the userdata/Thumbnails folder are no longer used? Or some process to clean them out? If there isn't a standard way, I will attempt to do it myself, but i need some help. I need to determine what all the valid hash's are, so i can determine which ones can be removed. To do this, I need to determine the CRC hash for every item in XBMC's library that can have a thumb/fanart image. So far I think I know:
Thanks! RE: Clean up the Thumbnails folder - bradvido88 - 2011-03-08 Well, I ended up writing my own script that cleans up the thumbnails directory. I had 31,563 thumbs/fanart before cleaning up. After cleanup, I have 12,967....Much nicer I've been exploring XBMC for a while now and have not found any thumbs missing ------------------------------------------------------------------------- Here is my script. You can use it to clean up your own thumbnail directory: Download XBMC Thumbnail Cleaner - v1.1 (Dharma Compatible) Download XBMC Thumbnail Cleaner - v1.2 (Eden Compatible) ***Currently no Frodo compatible version is available or planned*** Details:
If you are not running in simulation mode, I recommend backing up your Thumbnails directory, in case something goes wrong, you can easily revert. This has only been tested when XBMC's language is set to English. ------------------------------------------------------------------------- If you have problems, please paste your log and ThumbCleanerConfig.xml to pastebin.com and reply here with a link to them. Here is what a normal log would look like for reference: http://pastebin.com/raw.php?i=5cd6WEYf (v1.0 log) ***Note: If you are not running this on a Windows environment, you must specify the path to this program's directory as a command line parameter when starting. Cheers, BradVido88 - ppic - 2011-03-08 you can use the fileitem.py in my logo downloader script to get hash and path - bradvido88 - 2011-03-08 ppic Wrote:you can use the fileitem.py in my logo downloader script to get hash and pathThanks. I'm not developing in python, but could still be useful for cross-checking. Edit: for anyone who need to quickly check XBMC CRC hashs, you can use this on windows: http://forum.xbmc.org/showthread.php?tid=116861 - tboooe - 2011-03-08 bradvido88 Wrote:Well, I wrote my own script that cleans up the thumbnails/fanart. I am definitely interested in your script! I have the same problem as you and my thumbnail directory is getting way too big (over 3gb). Any help would be greatly appreciated. - paco - 2011-03-08 Add me to the people looking for a solution to this problem. My Thumbnails folder has grown exponentially over the years. I have upgraded my NAS a few times and I've also renamed a few items. It's too bad XBMC can't do this on its own. - queeup - 2011-03-08 Yes, come on guys send your Thumb clean codes. I want to use it @ppic come on write one for us with python also - PatK - 2011-03-08 Ditto.... speed and space are always on the forefront when I look deep. Trouble is I get lost, end up wandering into plugins. - kim1406 - 2011-03-08 looking for the script too. thumbnail directory here is over 8gb. - bradvido88 - 2011-03-08 OK, I'll clean out the hard-coding and post it when i have a chance. - ppic - 2011-03-08 queeup Wrote:Yes, come on guys send your Thumb clean codes. I want to use it you're better in python than me here - queeup - 2011-03-08 No waaay, i think you are more lazy then me - ppic - 2011-03-08 the simplest way i see here: make a list of used thumb. compare for each thumbs found in thumbnail folder if present in the list, if not, then delete it. this means it have to list all used thumb ( addon icon for example) at least, except library content thumb, all other used thumb will be regenerated by xbmc. - jmarshall - 2011-03-08 As soon as video and music thumbs are transferred to the texture cache I'll work on adding the cleanup side of things. Others are welcome to work on the cleanup side of things if you like - basically just open the Textures.db file and take a look at what we have - we have last used and use count available, so we can easily purge at various points (and ofcourse they'll be automatically re-cached if used again Good strategies for purging need to be dreamt up - I'm sure you guys can take care of that. Obviously these apply only to addons, pictures etc. at this point (i.e. not music or video thumbs). Cheers, Jonathan - ppic - 2011-03-08 jmarshall Wrote:As soon as video and music thumbs are transferred to the texture cache I'll work on adding the cleanup side of things. old habits, i forgot about texture.db ! |