(2021-05-19, 12:09)DoctorJellybean Wrote: I'm using Kodi Leia 18.5, on a QNAP NAS.
I believe that's the source of the confusion. As soon as a new Kodi is released Janitor only supports that version. Due to my limited time I cannot support multiple versions of Janitor that work with multiple versions of Kodi. Therefore the most recent version of Janitor you will be able to install is 4.4.1, so that's the reason nothing happens when you click update.
As for the reason version 4.4.1 does not delete empty folders, I cannot determine this from the log file. The execution of Janitor I think is happening in these lines, but you haven't enabled debug logging in Janitor's settings so I cannot see what is going on under the hood.
Code:
2021-05-19 09:53:54.006 T:140496668178176 DEBUG: CPythonInvoker(5, /opt/Kodi18/.kodi/addons/script.service.janitor/default.py): start processing
2021-05-19 09:53:54.023 T:140496668178176 DEBUG: -->Python Interpreter Initialized<--
2021-05-19 09:53:54.023 T:140496668178176 DEBUG: CPythonInvoker(5, /opt/Kodi18/.kodi/addons/script.service.janitor/default.py): the source file to load is "/opt/Kodi18/.kodi/addons/script.service.janitor/default.py"
2021-05-19 09:53:54.023 T:140496668178176 DEBUG: CPythonInvoker(5, /opt/Kodi18/.kodi/addons/script.service.janitor/default.py): setting the Python path to /opt/Kodi18/.kodi/addons/script.service.janitor:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages
2021-05-19 09:53:54.023 T:140496668178176 DEBUG: CPythonInvoker(5, /opt/Kodi18/.kodi/addons/script.service.janitor/default.py): entering source directory /opt/Kodi18/.kodi/addons/script.service.janitor
2021-05-19 09:53:54.023 T:140496668178176 DEBUG: CPythonInvoker(5, /opt/Kodi18/.kodi/addons/script.service.janitor/default.py): instantiating addon using automatically obtained id of "script.service.janitor" dependent on version 2.26.0 of the xbmc.python api
2021-05-19 09:53:54.046 T:140496668178176 DEBUG: CAddonSettings[script.service.janitor]: loading setting definitions
2021-05-19 09:53:54.046 T:140496668178176 DEBUG: CAddonSettings[script.service.janitor]: trying to load setting definitions from old format...
2021-05-19 09:53:54.048 T:140496668178176 DEBUG: CAddonSettings[script.service.janitor]: loading setting values
2021-05-19 09:53:57.083 T:140496668178176 ERROR: Remove - Error removing /share/Multimedia/Movies/Drama/The Glass Shield (1994)
2021-05-19 09:54:07.646 T:140497378449152 NOTICE: CleanDatabase: Starting videodatabase cleanup ..
2021-05-19 09:54:08.282 T:140497378449152 NOTICE: CleanDatabase: Cleaning videodatabase done. Operation took 00:00
2021-05-19 09:54:08.317 T:140498323904640 DEBUG: CDirectoryProvider[videodb://movies/titles/]: refreshing..
2021-05-19 09:54:08.317 T:140498323904640 DEBUG: CDirectoryProvider[videodb://tvshows/titles/]: refreshing..
2021-05-19 09:54:08.317 T:140498323904640 DEBUG: CDirectoryProvider[videodb://musicvideos/titles/]: refreshing..
2021-05-19 09:54:08.319 T:140497087616768 DEBUG: CRecentlyAddedJob::UpdateVideos() - Running RecentlyAdded home screen update
2021-05-19 09:54:08.477 T:140497087616768 DEBUG: CRecentlyAddedJob::UpdateTotal() - Running RecentlyAdded home screen update
2021-05-19 09:54:08.480 T:140497087616768 DEBUG: GetArtistsByWhere query: SELECT COUNT(DISTINCT artistview.idArtist) FROM artistview WHERE (EXISTS (SELECT 1 FROM song_artist WHERE song_artist.idArtist = artistview.idArtist AND song_artist.idRole = 1) OR EXISTS (SELECT 1 FROM album_artist WHERE album_artist.idArtist = artistview.idArtist)) AND (artistview.strArtist != '')
2021-05-19 09:54:11.946 T:140498323904640 DEBUG: ProcessMouse: trying mouse action leftclick
2021-05-19 09:54:12.262 T:140496668178176 INFO: CPythonInvoker(5, /opt/Kodi18/.kodi/addons/script.service.janitor/default.py): script successfully run
I do see an error related to deleting a movie:
Code:
2021-05-19 09:53:57.083 T:140496668178176 ERROR: Remove - Error removing /share/Multimedia/Movies/Drama/The Glass Shield (1994)
I suspect that this might be a reason folders aren't being deleted, but until I see the full debug logs I cannot say for certain. Also I suggest upgrading to Kodi Matrix, as Janitor was almost entirely rewritten to support it.