|
|
@ -46,7 +46,7 @@ def check_and_apply_update():
|
|
|
|
def updated():
|
|
|
|
def updated():
|
|
|
|
# from scheduler import shutdown_scheduler
|
|
|
|
# from scheduler import shutdown_scheduler
|
|
|
|
# from main import restart
|
|
|
|
# from main import restart
|
|
|
|
|
|
|
|
|
|
|
|
conn = sqlite3.connect(os.path.join(config_dir, 'db/bazarr.db'), timeout=30)
|
|
|
|
conn = sqlite3.connect(os.path.join(config_dir, 'db/bazarr.db'), timeout=30)
|
|
|
|
c = conn.cursor()
|
|
|
|
c = conn.cursor()
|
|
|
|
c.execute("UPDATE system SET updated = 1")
|
|
|
|
c.execute("UPDATE system SET updated = 1")
|
|
|
@ -57,4 +57,5 @@ def updated():
|
|
|
|
# shutdown_scheduler()
|
|
|
|
# shutdown_scheduler()
|
|
|
|
|
|
|
|
|
|
|
|
# Restart Bazarr
|
|
|
|
# Restart Bazarr
|
|
|
|
# restart()
|
|
|
|
# restart()
|
|
|
|
|
|
|
|
|