Release Janitor - 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: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: Release Janitor (/showthread.php?tid=162517) |
Janitor - Anthirian - 2013-04-15 Click here to buy me a coffee Official Release: 5.0.1- Available through the Kodi official addon repository. *** Please enable debugging in Janitor's settings, upload your kodi.log and post a link, or make use of the Kodi Logfile Uploader addon. This is the best way to troubleshoot any issues you might have. *** What does this addon do? Janitor helps you keep a clean Kodi video library by deleting any video that you have watched in the past. The videos can be either deleted permanently or moved to a holding folder (the default setting). You may also enable some of the various filters to apply before videos are deleted, for example "do not delete videos that have a rating lower than 8" or "wait to delete videos until my free disk space is less than 20%". Janitor can run as a service or started manually. When you enable service mode you may set a scan interval, as well as specify a startup delay. You can also choose to hold off on cleaning while you're watching a video. In that case cleaning will wait until the next interval has passed before trying again. Note: Please confirm you have set everything up correctly before switching to the permanent deletion option. If you're not sure what videos will be deleted, please set up a holding folder and check what has been moved there. Once you feel everything is working fine, you can choose to turn on permanent deletion. Installation
Note Janitor is marked broken in Kodi 16 (Jarvis) and earlier. This was the final step in moving over from the old name "XBMC File Cleaner" to "Janitor." Since the internal workings still relied upon the old name and the addon has long since been renamed to Janitor, I felt it was time to cut ties with the past. This does not mean the Jarvis version does not work anymore though. You can still install it, but you will have to do so by installing the last working version (4.2.1) from a zip file. Thanks Special thanks to Andrew Higginson for his work on the Dharma version all those years back. He has not had the time to maintain this addon, so I have taken over. Links GitHub source code - https://github.com/Anthirian/script.service.janitor Disclaimer This addon has the potential to wipe your entire video collection! Please make sure you understand exactly what this addon is designed to do before enabling the file deletion capabilities in the settings. I will not be held responsible for loss of data. Release Notes Code: Version 5.0.1 RE: [RELEASE] XBMC File Cleaner - patria o muerte - 2013-04-22 Hi, Does this addon work on android devices? Thanks. RE: [RELEASE] XBMC File Cleaner - Anthirian - 2013-04-22 It probably will, because it uses XBMC's interface for the file system, but I have no Android devices that I can test it on. Could you give it a try and give me some feedback on it please? RE: [RELEASE] XBMC File Cleaner - patria o muerte - 2013-04-23 (2013-04-22, 21:37)Anthirian Wrote: It probably will, because it uses XBMC's interface for the file system, but I have no Android devices that I can test it on. Could you give it a try and give me some feedback on it please? Hi, I have installed this addon a few days ago,it gives me a script error every time i start Xbmc. RE: [RELEASE] XBMC File Cleaner - Anthirian - 2013-04-23 You might still have the issue with setting a locale. I fixed that bug yesterday evening and pushed it to the official repo. You should get updated to version 3.0.1 soon, which fixes that problem. RE: [RELEASE] XBMC File Cleaner - patria o muerte - 2013-04-23 (2013-04-23, 10:43)Anthirian Wrote: You might still have the issue with setting a locale. I fixed that bug yesterday evening and pushed it to the official repo. You should get updated to version 3.0.1 soon, which fixes that problem. Ok,Thanks a lot! RE: [RELEASE] XBMC File Cleaner - fernandovg - 2013-04-23 does it delete the external subtitles either? RE: [RELEASE] XBMC File Cleaner - patria o muerte - 2013-04-23 Hi, i confirm that this addon works on my android device,good job! but I realize that it doesn't delete extrathumbs and extrafanart subfolders,it only cleans movies and related subtitles. RE: [RELEASE] XBMC File Cleaner - straasha - 2013-04-24 this version is causing a very high CPU utilization...around 65-75%...and never goes back to normal. I have a core 2 duo 2.53 GHz. I have tried on both 12.1 and the latest 12.2 pre build with the same results. here is a log report http://pastebin.ca/2365113 RE: [RELEASE] XBMC File Cleaner - lysin - 2013-04-26 Is there a way to have a log of what has been erased? It scares me having the plugin erasing stuff without some kind of supervision. And I can't disable permanent deletion because I'm on Openelec. Thanks and keep up the good work. RE: [RELEASE] XBMC File Cleaner - ijourneaux - 2013-04-27 Do you have the ability to control the TV shows that are deleted by title? RE: [RELEASE] XBMC File Cleaner - Anthirian - 2013-05-02 (2013-04-23, 16:02)fernandovg Wrote: does it delete the external subtitles either?Yes it will delete any file that is in the video's folder, but only if that folder becomes empty by deleting the last video in it. You can specify the file types that should be ignored while checking if the folder is empty through the settings. That means, if one of these file types is found, e.g. a .srt subtitle file, it still counts as if the folder is empty and the folder will be deleted. (2013-04-23, 23:36)patria o muerte Wrote: Hi,Thank you for getting back to me. You're right that those subfolders are not getting deleted. That is because it after deleting a file it will check if the folder the video was in has become empty by deleting the video. Because tools like Sick Beard require the TV Show folder to be present in order to download new episodes, I chose not to check if the parent folder is empty but only check the subfolders. I could probably make an exception for non-episodes to ignore the extrafanart and extrathumbs subfolders, but just adding the extensions of the images in those folders to the ignored file types list in the settings would result in the desired behavior already, since it checks subfolders too. (2013-04-24, 05:15)straasha Wrote: this version is causing a very high CPU utilization...around 65-75%...and never goes back to normal. I have a core 2 duo 2.53 GHz. I have tried on both 12.1 and the latest 12.2 pre build with the same results.Unfortunately the log you uploaded does not show any output by the cleaner, so I cannot find the issue from it. The log reads "22:48:07 T:6844 NOTICE: Disabled debug logging due to GUI setting. Level 0." This is because you have disabled logging somewhere. Could you please add PHP Code: <loglevel>1</loglevel> (2013-04-26, 20:38)lysin Wrote: Is there a way to have a log of what has been erased?I'm curious why you cannot change the permanent deletion setting on OpenELEC. Could you elaborate on that? You can find the files that have been deleted in xbmc.log in your userdata folder. I agree that it is risky to delete stuff without knowing what was deleted, so I may add a cleaning report section somewhere in the future that will show the last cleaning log. (2013-04-27, 01:09)ijourneaux Wrote: Do you have the ability to control the TV shows that are deleted by title?At the moment, no. Back in the days of Dharma, there was a fork on Github by someone who added this behavior, but it was very messy and it did not make it into the final version for Dharma then either. I might give it a try to add it into the cleaner, but it would require a lot of work and will not be done anytime soon. If you have only a few TV shows you wish to delete, you might be better off doing it manually in the meantime. RE: [RELEASE] XBMC File Cleaner - patria o muerte - 2013-05-02 (2013-05-02, 12:55)Anthirian Wrote: but just adding the extensions of the images in those folders to the ignored file types list in the settings would result in the desired behavior already, since it checks subfolders too. Hi, i did as you told me and finally it works perfectly! Many thanks! RE: [RELEASE] XBMC File Cleaner - lysin - 2013-05-02 I'm getting a python error script Here is the debug log: http://pastebin.com/EATHQQKC I'm guessing the error happens around line 1934. RE: [RELEASE] XBMC File Cleaner - Anthirian - 2013-05-02 That's one strange error. I did some searching online and found that it has something to do with the python interpreter itself. There is a similar issue here. Do you get this everytime? Apparently it is a rare error that usually fixes itself by restarting the python process, i.e. XBMC in this case. |