Git Product home page Git Product logo

xbmclibraryautoupdate's Introduction

Library Updater

Kodi Version Total Downloads Build Status License PEP8

The Library Updater will update your music and/or video libraries according to times specified by you. Please note that this is just a fancy timer that calls out to the normal Kodi Library Scanning functions. All of the processes associated with scanning are all handed off to Kodi.

Thanks to pkscuot for several small tweaks to this addon!

Settings

Be aware that settings are visible based on the Kodi Settings Level set. Levels higher than Standard (Advanced or Expert) are designated next to that setting.

General Settings:

  • Startup Delay - if an update should run on startup (dependent on the time the last update has ran) this will delay it from running for a few minutes to allow other XBMC process to function.
  • Show Notifications - shows notifications when the updater will run again
  • Run During Playback - should the addon run a scheduled scan when you are playing media (yes/no)
  • Only run when idle - restricts the scanning process to when the screensaver is active
  • Check if sources exist before scan - checks if the sources are online before starting the scan process. For single source scans it will check only that source. Settings Level Advanced
  • Disable Manual Run Prompt - disables the dialog box when selecting Manual Run and just goes right to the library update Settings Level Advanced

Video Settings:

Enabling this will turn on scanning for the Video Library. This is the same as calling "Update Library" from within the Video menus of Kodi. There are a few options you can tweak regarding how often you want the scanner to run. Read the section on Timer Options for more information.

Custom Paths Settings Level Expert

Custom paths are a special advanced feature for the Video library. It allows you to specify different schedules for individual paths in your library. This editor is limited to the Cron style syntax for scheduling. The path you select must already be in the video database and have content selected. The path must also match your source path exactly.

Music Settings

Enabled this will turn on scanning for the Music Library. This is the same as calling "Update Library" from within the Music menus of Kodi. The options here are identical to the Video Settings above. Read the section on Timer Options for more information.

Timer Options:

For both Video and Music library scanning there are two types of timers to choose from.

Standard Timer

Specify an interval to run the library update process. It will be launched every X hours within the interval unless on of the conditions specified by you as been met (don't run during media playback, etc) in which case it will be run at the next earliest convenience.

Advanced Timer Settings Level Advanced

Specify a cron expression to use as an interval for the update process. By default the expression will run at the top of every hour. More advanced expressions can be configured such as:


    .--------------- minute (0 - 59)
    |   .------------ hour (0 - 23)
    |   |   .--------- day of month (1 - 31)
    |   |   |   .------ month (1 - 12) or Jan, Feb ... Dec
    |   |   |   |  .---- day of week (0 - 6) or Sun(0 or 7)
    V   V   V   V  V
    *   *   *   *  *

Example:

  1. 0 */5 ** 1-5 - runs update every five hours Monday - Friday
  2. 0,15,30,45 0,15-18 * * * - runs update every quarter hour during midnight hour and 3pm-6pm

Read up on cron (http://en.wikipedia.org/wiki/Cron) for more information on how to create these expressions

Cleaning the Library:

Cleaning the Music/Video Libraries is not enabled by default. If you choose to do this you can select from a few options to try and reduce the likelyhood that a DB clean wile hose your database.

  • Library to Clean - You can clean your video library, music library, or both.
  • Prompt User Before Cleaning - you must confirm that you want to clean the library before it will happen. Really only useful for "After Update" as a condition. Settings Level Advanced
  • Frequency - There are several frequency options.
    • "After Update" will run a clean immediately following a scan on the selected library.
    • The Day/Week/Month options will schedule a clean task to happen. Cleaning the Video Library is hardcoded for midnight and the music library at 2am. Weekly updates occur on Sunday and Monthly updates occur on the first of each month - these values are hardcoded.
    • You can also choose to enter a custom cron timer for video and music library cleaning. These work the same as any of the other cron timers for the other schedules.

Contributing

If you're having issues with this addon there are two main places to look. The first is the addon thread on the Kodi Forums. This is where you can ask general questions regarding functionality. If you're having a legitimate issue, such as an error message, you can create an Issue for it in this repository.

Pull Requests are welcome if you want to dig around in the code to fix issues or add functionality. Please submit them using the usual workflow. Additionally you can help keep languages files up to date by visiting the Weblate page for this addon and updating untranslated strings. Changes to Weblate will automatically create PRs to this repository. This is a great way to contribute if you're not a coder!

xbmclibraryautoupdate's People

Contributors

afontenot avatar foxace avatar gade01 avatar github-actions[bot] avatar invisiblek avatar mmounirou avatar neohidra avatar robweber avatar struart avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xbmclibraryautoupdate's Issues

Add version number to logs

Lots of times people submit logs and it is very unclear what version of the addon they may be running. Add the version number to the log output when initializing. Can be done using this python code:

self.Addon.getAddonInfo('version')

v1.2.0 not working with newest "Kodi v19 Alpha 3"

Hi Rob,

When I execute the addon, following error appears in the log:

2020-11-04 21:19:24.158 T:20468    INFO <general>: initializing python engine.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.587 T:20468   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: 'line2' is an invalid keyword argument for this function
                                                   Traceback (most recent call last):
                                                     File "C:\Users\eusi\AppData\Roaming\Kodi\addons\service.libraryautoupdate\manual.py", line 11, in <module>
                                                       runUpdate = xbmcgui.Dialog().yesno(utils.getString(30000), utils.getString(30060) + nextRun, line2=utils.getString(30061), autoclose=6000)
                                                   TypeError: 'line2' is an invalid keyword argument for this function
                                                   -->End of Python script error report<--
                                                   
2020-11-04 21:19:24.621 T:20468    INFO <general>: Python interpreter stopped

How to fix it? :-)

Greetz
eusi

Unicode error

On Frodo.
I got this when running manually. I guess it is due to some french translations?

20:01:05 T:1445057600   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\xe9' in position 19: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/service.libraryautoupdate/manual.py", line 24, in <module>
                                                autoUpdate.evalSchedules()
                                              File "/home/xbmc/.xbmc/addons/service.libraryautoupdate/service.py", line 112, in evalSchedules
                                                self.showNotify()
                                              File "/home/xbmc/.xbmc/addons/service.libraryautoupdate/service.py", line 266, in showNotify
                                                xbmc.executebuiltin("Notification(" + self.Addon.getLocalizedString(30000) + "," + next_run_time.name + " - " + inWords + ",4000," + xbmc.translatePath(self.addondir + "/resources/images/clock.png") + ")")
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 19: ordinal not in range(128)
                                            -->End of Python script error report<--
20:01:05 T:1445057600    INFO: Python script stopped
20:01:05 T:1445057600   DEBUG: Thread XBPyThread 1445057600 terminating

Kodi 19 custom paths errors

Kodi 19 running on Android, Chromecast with Google TV
When going to Edit/Custom Paths under Video:

2021-03-27 09:44:56.013 T:10485   DEBUG <general>: CPythonInvoker(6, special://home/addons/service.libraryautoupdate/edit_custom_paths.py): entering source directory /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.libraryautoupdate
2021-03-27 09:44:56.341 T:10485   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: function takes at most 2 arguments (4 given)
                                                   Traceback (most recent call last):
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.libraryautoupdate/edit_custom_paths.py", line 8, in <module>
                                                       dialog.ok(utils.getString(30031), "", utils.getString(30032), utils.getString(30033))
                                                   TypeError: function takes at most 2 arguments (4 given)
                                                   -->End of Python script error report<--

2021-03-27 09:44:56.342 T:10485   DEBUG <general>: onExecutionDone(6, special://home/addons/service.libraryautoupdate/edit_custom_paths.py)

It won't work in Kodi 18.6 -- "No module named kodi_six"

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
   Error Type: <type 'exceptions.ImportError'>
   Error Contents: No module named kodi_six
   Traceback (most recent call last):
     File "/home/media/.kodi/addons/service.libraryautoupdate/default.py", line 1, in <module>
       import resources.lib.utils as utils
     File "/home/media/.kodi/addons/service.libraryautoupdate/resources/lib/utils.py", line 1, in <module>
       from kodi_six import xbmc,xbmcgui,xbmcaddon,xbmcvfs
   ImportError: No module named kodi_six
   -->End of Python script error report<--

Crash on Manual run of version 1.2.5

I'm using version 1.2.5 on Kodi 20.2.0.

Manual launching [from addons/program addons/Library Auto Update/Yes] says 'Library Auto Update erro : Check the log for more information".

Here is what the log says:

2023-12-17 13:56:37.465 T:4254    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'NoneType' object has no attribute 'screensaver_running'
                                                   Traceback (most recent call last):
                                                     File "/home/dwardo/.kodi/addons/service.libraryautoupdate/manual.py", line 21, in <module>
                                                       autoUpdate.evalSchedules(True)
                                                     File "/home/dwardo/.kodi/addons/service.libraryautoupdate/resources/lib/service.py", line 77, in evalSchedules
                                                       if(not utils.getSettingBool('run_on_idle') or (utils.getSettingBool('run_on_idle') and (self.monitor.screensaver_running or manual))):
                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                   AttributeError: 'NoneType' object has no attribute 'screensaver_running'
                                                   -->End of Python script error report<--

Available for any extra information or testing

Thanky ou for the Addon

Crash on Manual Run

I installed this addon on Kodi 19 Matrix running on Ubuntu 20.04 from the Kodi repo.
I set it up with a simple 6 hour timer. When I run the addon manually, i get a popup message saying "Library Auto Update error. Check the log for more info."

The Kodi logs report the following errors:

2021-04-30 22:49:28.750 T:2377187 INFO : CActiveAESink::OpenSink - initialize sink
2021-04-30 22:49:28.753 T:2433259 INFO : initializing python engine.
2021-04-30 22:49:29.385 T:2433259 ERROR : 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 "/home/benyjr/.kodi/addons/service.libraryautoupdate/manual.py", line 5, in
autoUpdate = AutoUpdater()
File "/home/benyjr/.kodi/addons/service.libraryautoupdate/resources/lib/service.py", line 36, in init
self.createSchedules(True)
File "/home/benyjr/.kodi/addons/service.libraryautoupdate/resources/lib/service.py", line 172, in createSchedules
aSchedule.expression = self.checkTimer('video')
File "/home/benyjr/.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<--

Plugin wakes the screensaver, even when 'show notifications' is disabled

The library auto update plugin seems to be waking my screensaver, even when I have 'show notifications' disabled.
I have been experiencing this on Kodi 20 in LibreElec and Kodi 20 on Windows 11.

When this add-on is enabled, my kodi screensaver will go away periodically and shows no notifications.
When I disable the add-on, my screen stops waking for no reason.

I have Kodi on a PC in my living room, so it is very noticeable when nobody is touching the remotes and the kodi menu suddenly reappears for seemingly no reason.

Library cleanup UI shows while watching movies

Tested using OpenELEC 3 RC1 / XBMC 12 RC3 / v 0.7.5

Configuration:
Configured to run library cleanup after update.

Behavior:
Let library update start.
Start watching movie.
Library update progress UI will hide.
While still watching movie, library cleanup UI will popup in front of movie.

Expected behavior:
No popup UI's while watching movies.

Not Working with Kodi 20.0

I can't get it to work in Kodi 20.0 on android or Windows. "Edit Custom Paths" throwing error as well

Verify Sources Before Clean on Gotham

"Verify Sources Before Clean - Frodo only! This feature is no longer needed with XBMC Gotham."

It looks like you removed this feature from Gotham because it is no longer needed? I'm running Gotham and having issues - when the auto updater plugin runs it performs a clean even though my media server is asleep, and the client's library is wiped out. Any ideas how to fix? Thanks.

Custom Source Canceling

Canceling the custom source GUI during the process inserts non completed entries in the scan file. This should cancel gracefully. Look at #39 for example.

XBMC Gotham Alpha breaks Auto Update 0.7.x

Letting you know that the new context menu level in XBMC Gotham is interfering with your plug-in. When the level is set to Basic or Standard (the default), XBMC won't allow your plug-in to run the Clean Library... function. When it tries to run it, Library Auto Update ends with message "Error Cleaning Database". I've entered ticket #14577 in TRAC to document the issue. Don't know what, if anything, they will do to address the issue. I'm currently running Auto Update 0.7.9. Thought you'd like to know

Regards

Manual run not working

Using the manual run feature prompts to run the update process but then nothing happens.

Kodi Matrix Changes

Keeping track of any Kodi Matrix python api changes that affect this addon:

Dropped monitor.onDatabaseUpdated

Reference this PR in Kodi and this line in the addon:

Leftover Classes on Manual Run

From MrMagic on the Kodi Forum regarding a manual run:

2020-03-01 12:25:53.410 T:2239697776 WARNING: CPythonInvoker(70, /storage/.kodi/addons/service.libraryautoupdate/manual.py): the python script "/storage/.kodi/addons/service.libraryautoupdate/manual.py" has left several classes in memory that we couldn't clean up. The classes include: N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE

If I leave the "Check if sources exist" option disabled it works normally.

option to supress errors

All of my resources are on my NAS. When maintaining the NAS (e.g. applying updates, rebooting), the library update of kodi throws an error, which does not disappear automatically. So all future auto updates fail. Please provide an option to suppress (such) warnings.

Submit to repo-script matrix branch?

Hey Rob,

Firstly, thanks for the addon, it's well used in my house ;)

Can I ask when when you plan to submit it to the repo-scripts matrix (py3) branch?

Failure to connect when updating on resume from sleep

Testing using openELEC 3 Beta 5 (XBMC RC1).

The plugin runs immediately after the system wakes from sleep.
This results in an error to connect dialog, if I select yes continue then all is well.
This only happens when scanning immediately after waking up.

I suspect that the network stack, or some other dependent component, is not yet ready to service requests right after waking up.

Maybe adding a couple seconds of waiting after a power event would resolve the problem?

Disable dialog when running a manual update?

I managed to find a place in one of the scripts to change something to 'True' and it would skip the dialog that asks if I want to run a manual update. I run them pretty frequently and if I'm clicking on the updater that is of course what I want it to do.

I suppose the addon got updated recently and my changes were overwritten. I can't figure out how to do it again. Any advice?

Schedule Cleanup Independantly

Right now the Clean operations only function if video or music scanning is enabled. (see code below).

if(self.Addon.getSetting('update_video') == 'true' or (self.Addon.getSetting('use_custom_1_path') == 'true' or self.Addon.getSetting('use_custom_2_path') == 'true' or self.Addon.getSetting('use_custom_3_path') == 'true')):
                        #video clean schedule starts at 12am
                        aSchedule = CronSchedule()
                        aSchedule.name = self.Addon.getLocalizedString(30048)
                        aSchedule.timer_type = self.addon_id
                        aSchedule.command = 'video'
                        aSchedule.expression = "0 0 " + aSchedule.cleanLibrarySchedule(int(self.Addon.getSetting("clean_timer")))
                        aSchedule.next_run = self.calcNextRun(aSchedule.expression,time.time())

                        self.schedules.append(aSchedule)

                    if(self.Addon.getSetting('update_music') == 'true'):
                        #music clean schedule starts at 2am
                        aSchedule = CronSchedule()
                        aSchedule.name = self.Addon.getLocalizedString(30049)
                        aSchedule.timer_type = self.addon_id
                        aSchedule.command = 'music'
                        aSchedule.expression = "0 2 " + aSchedule.cleanLibrarySchedule(int(self.Addon.getSetting("clean_timer")))
                        aSchedule.next_run = self.calcNextRun(aSchedule.expression,time.time())

                        self.schedules.append(aSchedule)

Create a setting under cleaning for Video,Music, or Both and control this independently of if libraries are being updated by the addon. This makes more sense for the end user. To maintain backward compatibility for what users have now use 'both' as the default.

Custom path config file

This came up in the forum a while ago. The idea of adding more sources via a config file so that it doesn't have to be added to the settings directly.

[Request] Update specific library source only

Is it possible to just update a single source in music rather than the entire library?

This would reduce my Audio Library update time from 25mins to 10 seconds :)

Would be nice for video too.

"Cleaning the Library" no more working in ver 1.2.3 on Kodi 19.4

Hi,

Long time user of your great addon I would like to report a problem on the cleaning side: once a folder is deleted on a disk the cleaning does not remove it anymore from the Kodi database. I've two setup and just compared the behavior:

#The setup
file source: NAS with SMB shares
Device1: Kodi embedded DB (default so, no external DB), Kodi 18.9, Livrary auto update ver 1.1.0
Device2: Kodi embedded DB (default so, no external DB), Kodi 19.4, Livrary auto update ver 1.2.3

#When I delete a folder on the SMB share

  • on Device1 all is fine, cleaning done and the entry is no more present in the TV shows
  • on Device2: the entry is present with no episodes under the TV shows (not cleaned). Using the Kodi menu "cleanup library" works however

Small visual defect on notification

I've noticed this addon has a small presentation issue when presenting the minutes before next scan. For example, If you run scans every 15 mins, and the scan only takes a few seconds, then there is 14 min, ~55 seconds before the next scan. The addon presents this as 14 minutes until the next scan in the notification. I think 15 minutes is a more accurate value in this case. This code change on line 256 of service.py fixes this:

minutes = int(round(cronDiff / 60.0 - hours * 60))

This change was too small to go through the whole fork/PR process. It's a minor issue but annoys me each time a scan runs ;-)

More Video Path Sources

jamie543 Wrote:
Anyway to be able to update more then 3 sources have got a few videos accross a few file paths would really like at least anouther 3

Library Auto Updater in loop

Using the Library Auto Updater add-on) and it is fine when updating the audio library but when it updates the video library it seems to go into a loop.
I have run it with debug on and pasted the results here https://paste.osmc.tv/kigadokita 1
The loop constantly displays messages on the screen (when the add-on is run manually) Saying Compressing database, and searching for data on the TVDB database.
The log shows these messages when running using the “RUN” option on the Settings>Add-on browser>Library Auto Update screen and repeats them for ever.

2021-10-27 11:26:58.064 T:866 INFO : VideoInfoScanner: Starting scan …
2021-10-27 11:26:58.266 T:866 INFO : VideoInfoScanner: Finished scan. Scanning for video info took 00:00

When I invoke an update of the library from the context menu the update runs as expected with no issues

2021-10-27 11:08:27.154 T:729 INFO : VideoInfoScanner: Starting scan …
2021-10-27 11:08:27.491 T:729 INFO : VideoInfoScanner: Finished scan. Scanning for video info took 00:00
2021-10-27 11:08:40.554 T:729 INFO : VideoInfoScanner: Starting scan …
2021-10-27 11:08:40.740 T:729 INFO : VideoInfoScanner: Finished scan. Scanning for video info took 00:00
2021-10-27 11:08:43.160 T:739 INFO : initializing python engine.
2021-10-27 11:08:45.765 T:739 INFO : CPythonInvoker(15, /home/osmc/.kodi/addons/script.skinshortcuts/default.py): script successfully run
2021-10-27 11:08:46.380 T:739 INFO : Python interpreter stopped

Kodi (OSMC) is running on a Raspberry Pi The files for the library are held on another Raspberry Pi acting as a file server. I have posted this on both the OSMC and KODI forums but they have been of no help.

Thank you.

Update all in English

Hello,
I use your addon quite often but since the recent update I do not have it anymore in french
It's normal
Thanking you

Cron Syntax Errors

Lots of posts on the forum related to errors in cron syntax stopping the service from running. Look in to better ways to error handle this and be a bit more user friendly. Looks like the only place the croniter library code is called is in the calcNextRun function, this would be the place to catch it.

Example of the error:

11:07:29.838 T:1707410176   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('9/21',)
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/default.py", line 6, in <module>
                                                AutoUpdater().runProgram()
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/service.py", line 38, in __init__
                                                self.createSchedules(True)
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/service.py", line 190, in createSchedules
                                                aJob.next_run = self.calcNextRun(aJob.expression, self.last_run)
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/service.py", line 216, in calcNextRun
                                                cron = croniter(cronExp,startTime)
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/resources/lib/croniter.py", line 93, in __init__
                                                t = self.ALPHACONV[i][t.lower()]
                                            KeyError: ('9/21',)
                                            -->End of Python script error report<--

Custom Path Notifications

From phatboyj on the Kodi Forum

When the Notif for the custom path appears on-screen to show the expected run time of the next update for the custom path.

First the Notification pops up and starts showing the full custom path scanning from right to left, but before the full path is shown "actually about only half of the path is shown" the Notif disappears from the screen. Leaving me with 0 info for when the next time the custom path update should run, or what custom path it is to run on
"Which to my understanding is the purpose of the Notification in the first place"

Suggestions in 4 parts to make Notifications better for custom paths, from my favorite to least "With You having the option to use any, all, or, none of-course"

1.)
A combination of options 2.) and 3.) "Below"

2.)
Use the Kodi sources.xml Alias for the custom path , instead of the full path in the Notification thus allowing the user to view all pertinent info more effectively

For example in the snippet below TVShows_Whatever is the Alias given to my custom path in the Kodi sources.xml

<video>
<source>
<name>TVShows_Whatever</name>
<path pathversion="1">special://profile/addon_data/plugin.video.Whatever/TVShows/</path>
<allowsharing>true</allowsharing>
</source>
</video>

3.)
Show the Update time Info before The Path Info
For Example
X-hours, X-minutes, X days until next update for TVShows_Whatever

4.)
Make the Notification stay on screen a little longer
For Example
Maybe 5, 8, or, 10 Seconds instead of its current, "3 seconds or less in My experience so-far"

Error on fresh install

I've just installed it, added the paths and I get this on the logs:

09:40:13.735 T:1463808768   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: Exactly 5 or 6 columns has to be specified for iteratorexpression.
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/default.py", line 6, in <module>
                                                AutoUpdater().runProgram()
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/service.py", line 38, in __init__
                                                self.createSchedules(True)
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/service.py", line 190, in createSchedules
                                                aJob.next_run = self.calcNextRun(aJob.expression, self.last_run)
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/service.py", line 216, in calcNextRun
                                                cron = croniter(cronExp,startTime)
                                              File "/home/osmc/.kodi/addons/service.libraryautoupdate/resources/lib/croniter.py", line 60, in __init__
                                                raise ValueError(self.bad_length)
                                            ValueError: Exactly 5 or 6 columns has to be specified for iteratorexpression.
                                            -->End of Python script error report<--```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.