Project

General

Profile

Feature #4689

Clean obsolete imagecache and log files

Added by S├ębastien Aubry almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-10-25
Due date:
% Done:

0%

Estimated time:

Description

Hi,
Following https://tvheadend.org/boards/5/topics/25428?r=26167: I still record a lot (about 45 programs per day). I had seen that some created files are never deleted.
I have just noticed that my Tvheadend installation (4.3-295 ~ LibreELEC Tvh-addon v8.1.444) is again very long to start (more than 10 minutes...). And again:

~/.kodi/userdata/addon_data/service.tvheadend42/imagecache/meta # ls -l | wc -l
154457

Most of them are older than the DVR retention time, that is to say obsolete:
LibreELEC:~/.kodi/userdata/addon_data/service.tvheadend42/imagecache/meta # find . -type f -mtime +30 | wc -l
151542

same here:
LibreELEC:~/.kodi/userdata/addon_data/service.tvheadend42/dvr/log # find . -type f -mtime +30 | wc -l
1809

I have deleted them:

LibreELEC:~/.kodi/userdata/addon_data/service.tvheadend42/imagecache/meta # find . -type f -mtime +30 -delete
LibreELEC:~/.kodi/userdata/addon_data/service.tvheadend42/dvr/log # find . -type f -mtime +30 -delete

and now it starts in 2 seconds :-)

Would it be possible to delete these files automatically, when the associated recordings are (automatically) deleted?
Thanks!

Also available in: Atom PDF