Library Auto Updater - Version 1.1.0 - 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: Library Auto Updater - Version 1.1.0 (/showthread.php?tid=119520) |
RE: Library Auto Updater - Version 1.1.0 - DoctorJellybean - 2020-11-08 This looks very useful indeed! What would the Advanced Timer cron expression be to run it only on Saturdays at 3pm? RE: Library Auto Updater - Version 1.1.0 - robweber - 2020-11-18 (2020-11-08, 15:01)DoctorJellybean Wrote: This looks very useful indeed! 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 RE: Library Auto Updater - Version 1.1.0 - DoctorJellybean - 2020-11-18 (2020-11-18, 01:24)robweber Wrote:(2020-11-08, 15:01)DoctorJellybean Wrote: This looks very useful indeed! Thank you. I actually figured it out not long after I posted the question, and used 0 15 * * SAT RE: Library Auto Updater - Version 1.1.0 - sirmedia - 2021-03-27 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. RE: Library Auto Updater - Version 1.1.0 - robweber - 2021-03-27 (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). 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. RE: Library Auto Updater - Version 1.1.0 - sirmedia - 2021-03-27 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? RE: Library Auto Updater - Version 1.1.0 - robweber - 2021-03-30 (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. Only when Kodi is active. All addons run as a process within Kodi so once the app is killed the scheduler no longer runs. RE: Library Auto Updater - Version 1.1.0 - sirmedia - 2021-03-30 (2021-03-30, 21:33)robweber Wrote: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.(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. There must be some weird interaction somewhere. Again, this started with Kodi 19, all was good with Kodi 18. RE: Library Auto Updater - Version 1.1.0 - robweber - 2021-04-07 (2021-03-30, 22:58)sirmedia Wrote:(2021-03-30, 21:33)robweber Wrote: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.(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. 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. RE: Library Auto Updater - Version 1.1.0 - sirmedia - 2021-04-07 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. RE: Library Auto Updater - Version 1.1.0 - alsuki - 2021-04-21 RE: Library Auto Updater - Version 1.1.0 - alsuki - 2021-04-21 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 RE: Library Auto Updater - Version 1.1.0 - robweber - 2021-05-03 (2021-04-21, 19:40)alsuki Wrote: Sorry,This will be fixed soon. Issue related to information presented with new addon settings format. For more info see here: https://github.com/robweber/xbmclibraryautoupdate/issues/60 RE: Library Auto Updater - Version 1.1.0 - cods69 - 2021-05-30 (2021-05-03, 00:48)robweber Wrote:Thanks for this fix - looking forward to it being available. Any idea when it will be ready to download?(2021-04-21, 19:40)alsuki Wrote: Sorry,This will be fixed soon. Issue related to information presented with new addon settings format. For more info see here: https://github.com/robweber/xbmclibraryautoupdate/issues/60 RE: Library Auto Updater - Version 1.1.0 - robweber - 2021-06-15 (2021-05-30, 07:48)cods69 Wrote: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(2021-05-03, 00:48)robweber Wrote:Thanks for this fix - looking forward to it being available. Any idea when it will be ready to download?(2021-04-21, 19:40)alsuki Wrote: Sorry,This will be fixed soon. Issue related to information presented with new addon settings format. For more info see here: https://github.com/robweber/xbmclibraryautoupdate/issues/60 |