videolibrary_service.py 文件源码

python
阅读 15 收藏 0 点赞 0 评论 0

项目:addon 作者: alfa-addon 项目源码 文件源码
def start(thread=True):
    if thread:
        t = threading.Thread(target=start, args=[False])
        t.setDaemon(True)
        t.start()
    else:
        import time

        update_wait = [0, 10000, 20000, 30000, 60000]
        wait = update_wait[int(config.get_setting("update_wait", "videolibrary"))]
        if wait > 0:
            time.sleep(wait)

        if not config.get_setting("update", "videolibrary") == 2:
            check_for_update(overwrite=False)

        # Se ejecuta ciclicamente
        while True:
            monitor_update()
            time.sleep(3600)  # cada hora
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号