Kodi Community Forum
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


RE: Janitor - DoctorJellybean - 2021-05-25

(2021-05-22, 18:10)Anthirian Wrote: you haven't enabled debug logging in Janitor's settings so I cannot see what is going on under the hood.

How do I access the Janitor debug log, once enabled?


RE: Janitor - Anthirian - 2021-05-26

Pretty easy actually, it gets printed in the Kodi logs. There aren’t any extra files.


RE: Janitor - DoctorJellybean - 2021-05-26

(2021-05-26, 11:54)Anthirian Wrote: Pretty easy actually, it gets printed in the Kodi logs. There aren’t any extra files.

Thank you.

I've installed Kodi Matrix, and will post my findings once everything is set up.


RE: Janitor - DoctorJellybean - 2021-05-27

Any advantages in running it as a Service?


RE: Janitor - Anthirian - 2021-08-25

Well, that means you don't have to manually invoke the cleaning process. The service can be configured to run at particular intervals.

By the way, I just submitted version 5.0.1 to the Kodi repositories, so hopefully soon the update auto-downloads and your cleaning service will be fixed. Thanks to all who helped me test the bug fixes before pushing it out to the general public.


RE: Janitor - ward0 - 2021-08-30

Hello,
The janitor cleaning is not working, you can find the full debug log here: https://pastebin.com/jm5xx91w


RE: Janitor - ward0 - 2021-09-09

@Anthirian can you take a look at my logs please.

Thanks
Ward


RE: Janitor - Anthirian - 2021-09-09

Code:
2021-08-25 20:53:33.806 T:1705 DEBUG <general>: Janitor: Janitor version 5.0.0 loaded.
I see you're still using version 5.0.0. I fixed a couple of things with regards to cleaning in version 5.0.1. Please update to this version and check if it is still the case. If so, please post new log files.


RE: Janitor - ward0 - 2021-09-16

(2021-09-09, 16:57)Anthirian Wrote:
Code:
2021-08-25 20:53:33.806 T:1705 DEBUG <general>: Janitor: Janitor version 5.0.0 loaded.
I see you're still using version 5.0.0. I fixed a couple of things with regards to cleaning in version 5.0.1. Please update to this version and check if it is still the case. If so, please post new log files.
@Anthirian Janitor has been updated to 5.0.1 but still same result Sad
You can find logs here: https://pastebin.com/zaf4yWKq


RE: Janitor - Anthirian - 2021-09-16

(2021-09-16, 11:01)ward0 Wrote: @Anthirian Janitor has been updated to 5.0.1 but still same result Sad
You can find logs here: https://pastebin.com/zaf4yWKq
Thanks for sharing the logs.

The relevant parts of the log are as follows.
Code:
2021-09-15 16:48:56.835 T:17608 DEBUG <general>: Skipped 5 duplicate messages..
2021-09-15 16:48:56.835 T:17608 DEBUG <general>: Thread LanguageInvoker start, auto delete: false
2021-09-15 16:48:56.836 T:17608 INFO <general>: initializing python engine.
2021-09-15 16:48:56.836 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): start processing
2021-09-15 16:48:57.135 T:17608 DEBUG <general>: Skipped 9 duplicate messages..
2021-09-15 16:48:57.135 T:17608 DEBUG <general>: -->Python Interpreter Initialized<--
2021-09-15 16:48:57.136 T:17608 DEBUG <general>:
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): the source file to load is "/home/osmc/.kodi/addons/script.service.janitor/default.py"
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): setting the Python path to /home/osmc/.kodi/addons/script.service.janitor:/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): entering source directory /home/osmc/.kodi/addons/script.service.janitor
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): instantiating addon using automatically obtained id of "script.service.janitor" dependent on version 3.0.0 of the xbmc.python api
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (clean_kodi_library) was not found.
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (holding_folder) was not found.
2021-09-15 16:48:57.636 T:17608 DEBUG <general>: Janitor: Janitor version 5.0.1 loaded.
2021-09-15 16:48:57.636 T:17608 DEBUG <general>: Janitor: Starting cleaning routine.
2021-09-15 16:48:57.636 T:17608 DEBUG <general>: DialogProgress::Open called
2021-09-15 16:48:59.642 T:17608 DEBUG <general>: Skipped 3 duplicate messages..
2021-09-15 16:48:59.642 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetMovies] Filters enabled: [{'field': 'playcount', 'operator': 'greaterthan', 'value': '0'}, {'field': 'inprogress', 'operator': 'false', 'value': ''}]
2021-09-15 16:48:59.668 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetMovies] Response: {"id":1,"jsonrpc":"2.0","result":{"limits":{"end":0,"start":0,"total":0},"movies":[]}}
2021-09-15 16:48:59.668 T:17608 DEBUG <general>: Janitor: Found 0 watched movies matching your conditions
2021-09-15 16:48:59.669 T:17608 DEBUG <general>: Janitor: JSON Response: {'limits': {'end': 0, 'start': 0, 'total': 0}, 'movies': []}
2021-09-15 16:48:59.669 T:17608 DEBUG <general>: Janitor: Breaking the loop
2021-09-15 16:49:01.691 T:17608 DEBUG <general>: Skipped 9 duplicate messages..
2021-09-15 16:49:01.691 T:17608 DEBUG <general>: DialogProgress::Open called (already running)!
2021-09-15 16:49:05.791 T:17608 DEBUG <general>: Skipped 13 duplicate messages..
2021-09-15 16:49:05.791 T:17608 DEBUG <general>: DialogProgress::Open called (already running)!
2021-09-15 16:49:07.855 T:17608 DEBUG <general>: Skipped 1 duplicate messages..
2021-09-15 16:49:07.855 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetEpisodes] Filters enabled: [{'field': 'playcount', 'operator': 'greaterthan', 'value': '0'}, {'field': 'inprogress', 'operator': 'false', 'value': ''}]
2021-09-15 16:49:07.879 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetEpisodes] Response: {"id":1,"jsonrpc":"2.0","result":{"episodes":[],"limits":{"end":0,"start":0,"total":0}}}
2021-09-15 16:49:07.880 T:17608 DEBUG <general>: Janitor: Found 0 watched episodes matching your conditions
2021-09-15 16:49:07.880 T:17608 DEBUG <general>: Janitor: JSON Response: {'episodes': [], 'limits': {'end': 0, 'start': 0, 'total': 0}}
2021-09-15 16:49:07.880 T:17608 DEBUG <general>: Janitor: Breaking the loop
2021-09-15 16:49:09.885 T:17608 DEBUG <general>: Skipped 11 duplicate messages..
2021-09-15 16:49:09.885 T:17608 DEBUG <general>: Janitor: Cleaning Kodi library not required and/or not enabled.
2021-09-15 16:49:09.885 T:17608 DEBUG <general>: Janitor: Nothing to log
2021-09-15 16:49:12.184 T:17608 INFO <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): script successfully run
2021-09-15 16:49:12.185 T:17608 DEBUG <general>: onExecutionDone(14, /home/osmc/.kodi/addons/script.service.janitor/default.py)
2021-09-15 16:49:12.556 T:17608 INFO <general>: Python interpreter stopped
2021-09-15 16:49:12.556 T:17608 DEBUG <general>: Thread LanguageInvoker 1579557056 terminating
I notice that something goes wrong with loading the settings, as indicated with the following lines.
Code:
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (clean_kodi_library) was not found.
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (holding_folder) was not found.
I did make some changes to the settings format. Could you try removing the /home/osmc/.kodi/userdata/addon_data/script.service.janitor/settings.xml file and reconfiguring your settings in Kodi to see if that helps? If not, please make sure that there are actually videos that have been marked as watched in the Kodi library. I'm not sure if this issue is related to that, so please try both.


RE: Janitor - ward0 - 2021-09-17

(2021-09-16, 13:15)Anthirian Wrote:
(2021-09-16, 11:01)ward0 Wrote: @Anthirian Janitor has been updated to 5.0.1 but still same result Sad
You can find logs here: https://pastebin.com/zaf4yWKq
Thanks for sharing the logs.

The relevant parts of the log are as follows.
Code:
2021-09-15 16:48:56.835 T:17608 DEBUG <general>: Skipped 5 duplicate messages..
2021-09-15 16:48:56.835 T:17608 DEBUG <general>: Thread LanguageInvoker start, auto delete: false
2021-09-15 16:48:56.836 T:17608 INFO <general>: initializing python engine.
2021-09-15 16:48:56.836 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): start processing
2021-09-15 16:48:57.135 T:17608 DEBUG <general>: Skipped 9 duplicate messages..
2021-09-15 16:48:57.135 T:17608 DEBUG <general>: -->Python Interpreter Initialized<--
2021-09-15 16:48:57.136 T:17608 DEBUG <general>:
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): the source file to load is "/home/osmc/.kodi/addons/script.service.janitor/default.py"
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): setting the Python path to /home/osmc/.kodi/addons/script.service.janitor:/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): entering source directory /home/osmc/.kodi/addons/script.service.janitor
2021-09-15 16:48:57.136 T:17608 DEBUG <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): instantiating addon using automatically obtained id of "script.service.janitor" dependent on version 3.0.0 of the xbmc.python api
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (clean_kodi_library) was not found.
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (holding_folder) was not found.
2021-09-15 16:48:57.636 T:17608 DEBUG <general>: Janitor: Janitor version 5.0.1 loaded.
2021-09-15 16:48:57.636 T:17608 DEBUG <general>: Janitor: Starting cleaning routine.
2021-09-15 16:48:57.636 T:17608 DEBUG <general>: DialogProgress::Open called
2021-09-15 16:48:59.642 T:17608 DEBUG <general>: Skipped 3 duplicate messages..
2021-09-15 16:48:59.642 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetMovies] Filters enabled: [{'field': 'playcount', 'operator': 'greaterthan', 'value': '0'}, {'field': 'inprogress', 'operator': 'false', 'value': ''}]
2021-09-15 16:48:59.668 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetMovies] Response: {"id":1,"jsonrpc":"2.0","result":{"limits":{"end":0,"start":0,"total":0},"movies":[]}}
2021-09-15 16:48:59.668 T:17608 DEBUG <general>: Janitor: Found 0 watched movies matching your conditions
2021-09-15 16:48:59.669 T:17608 DEBUG <general>: Janitor: JSON Response: {'limits': {'end': 0, 'start': 0, 'total': 0}, 'movies': []}
2021-09-15 16:48:59.669 T:17608 DEBUG <general>: Janitor: Breaking the loop
2021-09-15 16:49:01.691 T:17608 DEBUG <general>: Skipped 9 duplicate messages..
2021-09-15 16:49:01.691 T:17608 DEBUG <general>: DialogProgress::Open called (already running)!
2021-09-15 16:49:05.791 T:17608 DEBUG <general>: Skipped 13 duplicate messages..
2021-09-15 16:49:05.791 T:17608 DEBUG <general>: DialogProgress::Open called (already running)!
2021-09-15 16:49:07.855 T:17608 DEBUG <general>: Skipped 1 duplicate messages..
2021-09-15 16:49:07.855 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetEpisodes] Filters enabled: [{'field': 'playcount', 'operator': 'greaterthan', 'value': '0'}, {'field': 'inprogress', 'operator': 'false', 'value': ''}]
2021-09-15 16:49:07.879 T:17608 DEBUG <general>: Janitor: [VideoLibrary.GetEpisodes] Response: {"id":1,"jsonrpc":"2.0","result":{"episodes":[],"limits":{"end":0,"start":0,"total":0}}}
2021-09-15 16:49:07.880 T:17608 DEBUG <general>: Janitor: Found 0 watched episodes matching your conditions
2021-09-15 16:49:07.880 T:17608 DEBUG <general>: Janitor: JSON Response: {'episodes': [], 'limits': {'end': 0, 'start': 0, 'total': 0}}
2021-09-15 16:49:07.880 T:17608 DEBUG <general>: Janitor: Breaking the loop
2021-09-15 16:49:09.885 T:17608 DEBUG <general>: Skipped 11 duplicate messages..
2021-09-15 16:49:09.885 T:17608 DEBUG <general>: Janitor: Cleaning Kodi library not required and/or not enabled.
2021-09-15 16:49:09.885 T:17608 DEBUG <general>: Janitor: Nothing to log
2021-09-15 16:49:12.184 T:17608 INFO <general>: CPythonInvoker(14, /home/osmc/.kodi/addons/script.service.janitor/default.py): script successfully run
2021-09-15 16:49:12.185 T:17608 DEBUG <general>: onExecutionDone(14, /home/osmc/.kodi/addons/script.service.janitor/default.py)
2021-09-15 16:49:12.556 T:17608 INFO <general>: Python interpreter stopped
2021-09-15 16:49:12.556 T:17608 DEBUG <general>: Thread LanguageInvoker 1579557056 terminating
I notice that something goes wrong with loading the settings, as indicated with the following lines.
Code:
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (clean_kodi_library) was not found.
2021-09-15 16:48:57.635 T:17608 DEBUG <CSettingsManager>: requested setting (holding_folder) was not found.
I did make some changes to the settings format. Could you try removing the /home/osmc/.kodi/userdata/addon_data/script.service.janitor/settings.xml file and reconfiguring your settings in Kodi to see if that helps? If not, please make sure that there are actually videos that have been marked as watched in the Kodi library. I'm not sure if this issue is related to that, so please try both.
I tried what you said, but it didn't help.
I went to kodi library and checked my content.. it was set none! Sad after changing that, your program started to work.
Maybe you could build in a check or something? If 0 library's were found with tv-shows/movies/music show in logging?

Thanks for the help.
Ward


RE: More exclusions possible? - Alexander78 - 2022-05-08

(2018-01-21, 01:02)hooah212002 Wrote: Apologies if this has been asked already (I searched every page for "excl"):

Is there a way to add more exclusions than the 5 that are available by default in v4.3.2? I am fine with doing so via text editor if not possible via the GUI.
Was this ever addressed ?

I've run out of " exclusion slots" as well, and very curious how to add more, even if it must be done manually.


RE: Janitor - datalore44 - 2022-06-28

Hi. I have just installed janitor on a fresh kodi matrix v19.4 install running windows 10. My media is via a NAS using NFS shares.
I cannot get janitor to work. It will find my watched media but it will not delete any of it. Also it does not seem to run as a service.
Can you help?
Regards
Alan.


RE: Janitor - doorbreath - 2022-07-21

Hi,  love this addon thank you for making it, I don't keep things after I've watched them and this makes it so much easier than having to manually delete things once I've watched things.  One thing I was wondering, was if there was a way of having it run at a set time? I've seen the run as a service option, and I have this enabled so it runs once a day, but I have to enable the option to not clean while watching to avoid it disturbing whatever I'm watching so quite often it misses a day.  I would prefer to be able to have it run at the same time each day, then I could set it for something like 5am when I'm never likely to be watching something. Thanks.


RE: Janitor - Anthirian - 2022-08-29

(2022-06-28, 00:57)datalore44 Wrote: Hi. I have just installed janitor on a fresh kodi matrix v19.4 install running windows 10. My media is via a NAS using NFS shares.
I cannot get janitor to work. It will find my watched media but it will not delete any of it. Also it does not seem to run as a service.
Can you help?
Regards
Alan.

Sorry for the late reply. Sure I can help, but please submit a debug log first.

(2022-07-21, 12:46)doorbreath Wrote: Hi,  love this addon thank you for making it, I don't keep things after I've watched them and this makes it so much easier than having to manually delete things once I've watched things.  One thing I was wondering, was if there was a way of having it run at a set time? I've seen the run as a service option, and I have this enabled so it runs once a day, but I have to enable the option to not clean while watching to avoid it disturbing whatever I'm watching so quite often it misses a day.  I would prefer to be able to have it run at the same time each day, then I could set it for something like 5am when I'm never likely to be watching something. Thanks.

You're welcome. I'm glad you're enjoying it! That's actually a pretty useful feature. I don't know why I never thought of that before. I'll write it down. I'm not actively developing new features, but this is one that would be among the first when I'm adding new things.