mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-23 06:27:55 +01:00
fixed shutdown function in scheduler.py
This commit is contained in:
parent
e582be4c7b
commit
6eb5b7f986
@ -49,7 +49,7 @@ class BackupScheduler:
|
|||||||
if(utils.getSetting("cron_shutdown") == 'true'):
|
if(utils.getSetting("cron_shutdown") == 'true'):
|
||||||
#wait 10 seconds to make sure all backup processes and files are completed
|
#wait 10 seconds to make sure all backup processes and files are completed
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
xbmc.executebuiltin('Quit()')
|
xbmc.executebuiltin('ShutDown()')
|
||||||
else:
|
else:
|
||||||
#find the next run time like normal
|
#find the next run time like normal
|
||||||
self.findNextRun(now,True)
|
self.findNextRun(now,True)
|
||||||
@ -90,7 +90,6 @@ class BackupScheduler:
|
|||||||
hour_of_day = int(hour_of_day[0:2])
|
hour_of_day = int(hour_of_day[0:2])
|
||||||
if(schedule_type == 0):
|
if(schedule_type == 0):
|
||||||
#every day
|
#every day
|
||||||
|
|
||||||
cron_exp = "0 " + str(hour_of_day) + " * * *"
|
cron_exp = "0 " + str(hour_of_day) + " * * *"
|
||||||
elif(schedule_type == 1):
|
elif(schedule_type == 1):
|
||||||
#once a week
|
#once a week
|
||||||
|
Loading…
Reference in New Issue
Block a user