Posts: 63
Joined: Jan 2017
Reputation:
1
This looks very useful indeed!
What would the Advanced Timer cron expression be to run it only on Saturdays at 3pm?
Posts: 136
Joined: Nov 2014
Reputation:
3
This addon may have some issues in Kodi 19 running on Chromecast w/ Google TV (Android). All media is on NFS, but when this runs unattended it seems to clear the database and for each source it switches the setting "This directory contains" to None. I have the option "Check if source exists" enabled, so I would think that stops it from running if NFS is not available (though the server is always on the LAN and reliable).
I can't reproduce if I run an update by hand, it seems to happen when it runs on a schedule, when I come back to Kodi, the library is empty and each source type is None. This used to work OK with Kodi 18, the problems started with the upgrade to Kodi 19. I tried reinstalling Kodi and starting clean, but it doesn't help.
Posts: 136
Joined: Nov 2014
Reputation:
3
I looked through the debug log and I can't see anything unusual unfortunately. I do not want to post the entire log due to potentially sensitive info it may contain.
On Android, does the schedule run in the background, perhaps as a service or only when Kodi is active?
Posts: 136
Joined: Nov 2014
Reputation:
3
I agree, this is strange. I can't tell when it's happening, it doesn't happen when I run it manually. Only if the schedule is enabled, if I exit Kodi and then later on restart it (next day or so), I can't reproduce it if I exit Kodi and restart it right away. For now I just turned off the schedule because it doesn't seem useful on Android, you need to keep Kodi active for the schedule to run. Instead, I enabled the option in Kodi to update the library on start w/ the option to clean the library from your addon and that seems to work well enough for my use case where I add/delete media on the NFS server directly.
Posts: 8
Joined: Sep 2019
Reputation:
0
Sorry,
The error is:
2021-04-19 17:38:14.592 T:1267 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->
Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type:
<class 'KeyError'> Error Contents: '6' Traceback (most recent call last): File "/storage/.kodi/addons/service.libraryautoupdate/resources/lib/service.py",
line 422, in onSettingsChanged self.update_settings() File "/storage/.kodi/addons/service.libraryautoupdate/resources/lib/service.py",
line 172, in createSchedules aSchedule.expression = self.checkTimer('video') File "/storage/.kodi/addons/service.libraryautoupdate/resources/lib/service.py",
line 217, in checkTimer result = '0 */' + str(self.timer_amounts[utils.getSetting(settingName + "_timer")]) + ' * * *' KeyError: '6' -->
End of Python script error report<--
Bests,
Al