Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 28
  • 29
  • 30
  • 31(current)
  • 32
Library Auto Updater - Version 1.1.0
This looks very useful indeed!

What would the Advanced Timer cron expression be to run it only on Saturdays at 3pm?
Reply
(2020-11-08, 15:01)DoctorJellybean Wrote: This looks very useful indeed!

What would the Advanced Timer cron expression be to run it only on Saturdays at 3pm?

0 15 * * 6

0 - minute
15 - 3pm as 24 hr clock
* - any date of the month
* - every month of the year
6 - has to be Saturday (1-7 days of the week)

http://en.wikipedia.org/wiki/Cron
Reply
(2020-11-18, 01:24)robweber Wrote:
(2020-11-08, 15:01)DoctorJellybean Wrote: This looks very useful indeed!

What would the Advanced Timer cron expression be to run it only on Saturdays at 3pm?

0 15 * * 6

0 - minute
15 - 3pm as 24 hr clock
* - any date of the month
* - every month of the year
6 - has to be Saturday (1-7 days of the week)

http://en.wikipedia.org/wiki/Cron

Thank you. I actually figured it out not long after I posted the question, and used 0 15 * * SAT
Reply
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.
Reply
(2021-03-27, 08:01)sirmedia Wrote: 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.

Please provide a Debug Log and create an issue on Github. This addon just hooks a timer to the existing Kodi library scanner so there must be something odd happening during the scan. The log will point things in the right direction.
Reply
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?
Reply
(2021-03-27, 19:11)sirmedia Wrote: 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?

Only when Kodi is active. All addons run as a process within Kodi so once the app is killed the scheduler no longer runs.
Reply
(2021-03-30, 21:33)robweber Wrote:
(2021-03-27, 19:11)sirmedia Wrote: 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?

Only when Kodi is active. All addons run as a process within Kodi so once the app is killed the scheduler no longer runs.
Thanks. I'm at a loss what's causing the source type to change to None. If I turn off this addon or just turn off its schedule I don't experience any change in the source types. I can configure it to clean up after library update and can run the library update followed by cleanup manually and everything is fine. But if I enable the schedule at the default 4 hrs and with the option to check that the sources are available, then go to the device home and turn off the TV, the next day it's very likely that my source types have all switched to None and the library is empty.
There must be some weird interaction somewhere. Again, this started with Kodi 19, all was good with Kodi 18.
Reply
(2021-03-30, 22:58)sirmedia Wrote:
(2021-03-30, 21:33)robweber Wrote:
(2021-03-27, 19:11)sirmedia Wrote: 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?

Only when Kodi is active. All addons run as a process within Kodi so once the app is killed the scheduler no longer runs.
Thanks. I'm at a loss what's causing the source type to change to None. If I turn off this addon or just turn off its schedule I don't experience any change in the source types. I can configure it to clean up after library update and can run the library update followed by cleanup manually and everything is fine. But if I enable the schedule at the default 4 hrs and with the option to check that the sources are available, then go to the device home and turn off the TV, the next day it's very likely that my source types have all switched to None and the library is empty.
There must be some weird interaction somewhere. Again, this started with Kodi 19, all was good with Kodi 18.

That is odd. I double checked the JSON RPC docs for Kodi 19 and it doesn't have any additional information that wasn't in the last release. Basically just called the "Scan" function. wonder if you got a log during that window if you'd see anything. There may be a bug where Kodi resets the sources if the source is unavailable or something? I did a quick search through the Github issues and came up short there too.
Reply
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.
Reply
Reply
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
Reply
(2021-04-21, 19:40)alsuki Wrote: 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
This will be fixed soon. Issue related to information presented with new addon settings format. For more info see here: https://github.com/robweber/xbmclibrarya.../issues/60
Reply
(2021-05-03, 00:48)robweber Wrote:
(2021-04-21, 19:40)alsuki Wrote: 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
This will be fixed soon. Issue related to information presented with new addon settings format. For more info see here: https://github.com/robweber/xbmclibrarya.../issues/60
Thanks for this fix - looking forward to it being available.  Any idea when it will be ready to download?
Reply
(2021-05-30, 07:48)cods69 Wrote:
(2021-05-03, 00:48)robweber Wrote:
(2021-04-21, 19:40)alsuki Wrote: 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
This will be fixed soon. Issue related to information presented with new addon settings format. For more info see here: https://github.com/robweber/xbmclibrarya.../issues/60
Thanks for this fix - looking forward to it being available.  Any idea when it will be ready to download?
It was sitting in the Kodi repo for approval for a bit. Finally merged in and available: https://github.com/xbmc/repo-scripts/pull/2024
Reply
  • 1
  • 28
  • 29
  • 30
  • 31(current)
  • 32

Logout Mark Read Team Forum Stats Members Help
Library Auto Updater - Version 1.1.00