2021-05-25, 13:03
(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?
(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.
(2021-05-26, 11:54)Anthirian Wrote: [ -> ]Pretty easy actually, it gets printed in the Kodi logs. There aren’t any extra files.
2021-08-25 20:53:33.806 T:1705 DEBUG <general>: Janitor: Janitor version 5.0.0 loaded.
(2021-09-09, 16:57)Anthirian Wrote: [ -> ]@Anthirian Janitor has been updated to 5.0.1 but still same resultI 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.Code:2021-08-25 20:53:33.806 T:1705 DEBUG <general>: Janitor: Janitor version 5.0.0 loaded.
(2021-09-16, 11:01)ward0 Wrote: [ -> ]@Anthirian Janitor has been updated to 5.0.1 but still same resultThanks for sharing the logs.
You can find logs here: https://pastebin.com/zaf4yWKq
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
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-16, 13:15)Anthirian Wrote: [ -> ]I tried what you said, but it didn't help.(2021-09-16, 11:01)ward0 Wrote: [ -> ]@Anthirian Janitor has been updated to 5.0.1 but still same resultThanks for sharing the logs.
You can find logs here: https://pastebin.com/zaf4yWKq
The relevant parts of the log are as follows.
I notice that something goes wrong with loading the settings, as indicated with the following lines.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 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.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.
(2018-01-21, 01:02)hooah212002 Wrote: [ -> ]Apologies if this has been asked already (I searched every page for "excl"):Was this ever addressed ?
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.
(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.
(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.