Exemple #1
0
def main():
    set_property(
        "syncing_library",
        int((time.time() -
             plugin.get_setting(SETTING_UPDATE_LIBRARY_INTERVAL, int) * 60)))
    set_property(
        "updating_library",
        int((time.time() -
             plugin.get_setting(SETTING_UPDATE_LIBRARY_INTERVAL, int) * 60)))
    set_property(
        "updating_library_music",
        int((time.time() -
             plugin.get_setting(SETTING_UPDATE_LIBRARY_INTERVAL, int) * 60)))

    go_idle(15)
    if plugin.get_setting(SETTING_TOTAL_SETUP_DONE, bool) == False:
        xbmc.executebuiltin(
            'RunPlugin(plugin://plugin.video.chappaai/setup/total)')
        plugin.set_setting(SETTING_TOTAL_SETUP_DONE, "true")
    if plugin.get_setting(SETTING_AUTOPATCH, bool) == True:
        patch("auto")
    xbmc.executebuiltin(
        "RunPlugin(plugin://plugin.video.chappaai/movies/batch_add_to_library)"
    )
    next_update = future(0)
    while not xbmc.abortRequested:
        if next_update <= future(0):
            next_update = future(
                plugin.get_setting(SETTING_UPDATE_LIBRARY_INTERVAL, int) * 60 *
                60)
            update_library()
        go_idle(30 * 60)
Exemple #2
0
def main():
    go_idle(45)
    if plugin.get_setting(SETTING_TOTAL_SETUP_DONE, bool) == False:
        xbmc.executebuiltin('RunPlugin(plugin://plugin.video.metalliq/setup/total)')
        plugin.set_setting(SETTING_TOTAL_SETUP_DONE, "true")
    #xbmc.executebuiltin("RunPlugin(plugin://plugin.video.metalliq/movies/batch_add_to_library)")
    next_update = future(0)
    while not xbmc.abortRequested:
        if next_update <= future(0):
            next_update = future(plugin.get_setting(SETTING_UPDATE_LIBRARY_INTERVAL, int) * 60 * 60)
            update_library()
        go_idle(30*60)
Exemple #3
0
def main():
    go_idle(45)
    if plugin.get_setting(SETTING_TOTAL_SETUP_DONE, bool) == False:
        xbmc.executebuiltin('RunPlugin(plugin://plugin.video.metalliq/setup/total)')
        plugin.set_setting(SETTING_TOTAL_SETUP_DONE, "true")
    #xbmc.executebuiltin("RunPlugin(plugin://plugin.video.metalliq/movies/batch_add_to_library)")
    next_update = future(0)
    while not xbmc.abortRequested:
        if next_update <= future(0):
            next_update = future(plugin.get_setting(SETTING_UPDATE_LIBRARY_INTERVAL, int) * 60 * 60)
            update_library()
        go_idle(30*60)