Kodi Community Forum

Full Version: Automatic Purging of Thumbnails
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Is there a way either in Android or Kodi to automatically delete the Thumbnails folder and the textures13.db either while Kodi is not running or to restart it after it has been deleted? Like to delete them on a schedule would be nice. I know I can do it through File Manager but if i could set it to automatically do it like once a week or every 2 weeks...that would be nice. Any suggestions?
Not currently possible just within Kodi. Hopefully in the future something like that will happen.
That would be nice! Anyone know of any work-arounds to make it scheduled automatically within Android somehow?
If you have no answer here, my best guess is to ask on the xda forum.
It should be possible to use a script to do so runing at startup, on a scheduled basis or even with a trigger.

Edit: going further, i am almost sure you can wrap this script in an addon you could use in kodi.
honestly, even with massive libraries, I don't think most people will see a significant difference in space saved to justify a regular purge. Maybe once a year, and you can use the cache tool for that: http://forum.kodi.tv/showthread.php?tid=158373
I dont know if this helps but i installed raw maintenance from the no issue installer and i can delete thumbnails cache and purge, but i didnt c any difference performance wise
(2015-05-23, 13:16)bazzol Wrote: [ -> ]I dont know if this helps but i installed raw maintenance from the no issue installer and i can delete thumbnails cache and purge, but i didnt c any difference performance wise

"raw maintenance" is evil and should be considered HIGHLY DANGEROUS!
I seen a video about it where it said it was better for performance and to free up some space to make things run better but i never seen any difference to be honest and i thought it would fix my freezing problem when watching a film but it didnt lol.
(2015-05-23, 13:18)Martijn Wrote: [ -> ]
(2015-05-23, 13:16)bazzol Wrote: [ -> ]I dont know if this helps but i installed raw maintenance from the no issue installer and i can delete thumbnails cache and purge, but i didnt c any difference performance wise

"raw maintenance" is evil and should be considered HIGHLY DANGEROUS!

Why is that? I looked it up and it seems to be what I need. A one-click solution to delete the thumbs and textures13.db. It also would remind me to use the tool once my storage space gets below 500 mb. It sounds ideal but out of curiosity why is it evil and considered dangerous?
I dont know, worked ok for me , maybe people know something their not saying.
It's because those addons "may" be potentially do things in the background you don't want.
I went through the python code of the add-on, and all seems safe. It's running some very basic commands to do this stuff. I have stripped out the "news" feature of the tool, as I don't care about the website it's associated with, and now it's just the very basics. If anyone is interested in the stripped down version (also did away with the cheesy icons and changed to something basic) I will send you a link
I wouldn't say "evil". Often these tools are made with the best intentions. However, we've seen them do stuff that isn't recommended and has caused issues.

For example, one of the options in the past (and it might still be there) is an option for Fire TV users to pre-install a keymap, but without a description for what it does. This keymap added audio amplification as a way to control the volume, since the Fire TV doesn't respond to software volume control. This can work, but the way audio amplification works will cause distortions and not actually turn anything "down".

Another example, the "zero cache" option is one of the most used in these maintenance tools, but there's no warning for users that have low internal memory. Fire TVs and other Android devices with 8 GB or less will crash or have orphaned temp cache files that don't clear out, causing playback issues or running out of internal memory. It bypasses the entire reason we don't add such settings to the GUI, because they can't be safely turned on for all users. (side note, the buffer rate seems to be one of the safe cache-related settings, and in v15 it has been increased by default, fixing a lot of issues without requiring any advancedsettings.xml files)

Then there's other totally pointless options, like "erase logs". Logs are automatically erased every time Kodi is restarted. The current Kodi session uses kodi.log, then when restarted kodi.log will become kodi.old.log, and the previous kodi.old.log gets deleted. The only time I can think of (other than hiding porn) for when one would ever want to manually delete the log would be if something went horribly wrong and the log became huge, and in that case the user will probably want to keep the log in order to report that very issue.

Same with "purge packages" being useless. Packages are the add-on packages for add-on rollback (a little known feature in Kodi that allows you to rollback to a previous version of an add-on, incase an update breaks something). Packages are automatically purged so that only 200 MB of the most recent add-on versions are saved, and that 200 MB size can be further adjusted all the way down to zero via advancedsettings.xml (wiki). At 200 MB there really isn't any significant savings to even bother manually purging or trying to make the saved size smaller.

Even more useless are options like "add-on remover", "skin remover", and "repo remover", which are built-in functions of Kodi in the first place. You can do all of that more easily without using any extra maintenance tool add-on.

Things like the "config wizard" have been found to install spam-like services. For example, a pre-configured twitter add-on that beeps you whenever some group like tvaddons wants to tell you something, even while watching a video. That specific example caused a flood of users getting a persistent error message about a bad search, and users had no way of knowing how to disable this. Another example, that horribly tacky background picture with their logo all spewed on it.

I don't know if they still do this, but they used to modify the files of other add-ons, which made undoing what the maintenance and configure tools did almost impossible without totally redoing the install from scratch.

Nothing "life or death", for sure, but using these tools obscure issues, sometimes cause issues, and generally make it harder to provide support for our own users. This has caused us to become very frustrated with those tools, when they would otherwise be a welcome addition to the community. We've even tried to provide advice on how different things could be improved, and most of that has fallen on deaf ears.
(2015-05-26, 03:42)Ned Scott Wrote: [ -> ]I wouldn't say "evil". Often these tools are made with the best intentions. However, we've seen them do stuff that isn't recommended and has caused issues.

For example, one of the options in the past (and it might still be there) is an option for Fire TV users to pre-install a keymap, but without a description for what it does. This keymap added audio amplification as a way to control the volume, since the Fire TV doesn't respond to software volume control. This can work, but the way audio amplification works will cause distortions and not actually turn anything "down".

Another example, the "zero cache" option is one of the most used in these maintenance tools, but there's no warning for users that have low internal memory. Fire TVs and other Android devices with 8 GB or less will crash or have orphaned temp cache files that don't clear out, causing playback issues or running out of internal memory. It bypasses the entire reason we don't add such settings to the GUI, because they can't be safely turned on for all users. (side note, the buffer rate seems to be one of the safe cache-related settings, and in v15 it has been increased by default, fixing a lot of issues without requiring any advancedsettings.xml files)

Then there's other totally pointless options, like "erase logs". Logs are automatically erased every time Kodi is restarted. The current Kodi session uses kodi.log, then when restarted kodi.log will become kodi.old.log, and the previous kodi.old.log gets deleted. The only time I can think of (other than hiding porn) for when one would ever want to manually delete the log would be if something went horribly wrong and the log became huge, and in that case the user will probably want to keep the log in order to report that very issue.

Same with "purge packages" being useless. Packages are the add-on packages for add-on rollback (a little known feature in Kodi that allows you to rollback to a previous version of an add-on, incase an update breaks something). Packages are automatically purged so that only 200 MB of the most recent add-on versions are saved, and that 200 MB size can be further adjusted all the way down to zero via advancedsettings.xml (wiki). At 200 MB there really isn't any significant savings to even bother manually purging or trying to make the saved size smaller.

Even more useless are options like "add-on remover", "skin remover", and "repo remover", which are built-in functions of Kodi in the first place. You can do all of that more easily without using any extra maintenance tool add-on.

Things like the "config wizard" have been found to install spam-like services. For example, a pre-configured twitter add-on that beeps you whenever some group like tvaddons wants to tell you something, even while watching a video. That specific example caused a flood of users getting a persistent error message about a bad search, and users had no way of knowing how to disable this. Another example, that horribly tacky background picture with their logo all spewed on it.

I don't know if they still do this, but they used to modify the files of other add-ons, which made undoing what the maintenance and configure tools did almost impossible without totally redoing the install from scratch.

Nothing "life or death", for sure, but using these tools obscure issues, sometimes cause issues, and generally make it harder to provide support for our own users. This has caused us to become very frustrated with those tools, when they would otherwise be a welcome addition to the community. We've even tried to provide advice on how different things could be improved, and most of that has fallen on deaf ears.

Underrstandable, and I am well aware of the problems these things have caused. I was curious if there was any other thing besides the general fuckery these other websites have caused. I will end up making my own version of the tool for the community with just the 2 options to clear cache and remove thumbnails. Hopefully it will be useful to people with low power/low storage devices.

Edit: Download has been taken offline
(2015-05-22, 00:13)Ned Scott Wrote: [ -> ]Not currently possible just within Kodi. Hopefully in the future something like that will happen.

I am downloading the source and experimenting with implementing this into core Kodi. If successful, would the team be interested in mainlining this feature?
Pages: 1 2 3