mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
allow user to turn on/off
This commit is contained in:
parent
7e01f51e86
commit
2af3070528
@ -100,4 +100,5 @@
|
||||
<string id="30106">is authorized</string>
|
||||
<string id="30107">error authorizing</string>
|
||||
<string id="30108">Visit https://console.developers.google.com/</string>
|
||||
<string id="30109">Run on startup if missed</string>
|
||||
</strings>
|
||||
|
@ -36,6 +36,7 @@
|
||||
<setting id="schedule_time" type="labelenum" label="30062" values="00:00|01:00|02:00|03:00|04:00|05:00|06:00|07:00|08:00|09:00|10:00|11:00|12:00|13:00|14:00|15:00|16:00|17:00|18:00|19:00|20:00|21:00|22:00|23:00" default="00:00" visible="!eq(-1,4)" enable="eq(-2,true)"/>
|
||||
<setting id="day_of_week" type="enum" label="30063" lvalues="30065|30066|30067|30068|30069|30070|30071" default="0" visible="eq(-2,2)" enable="eq(-3,true)"/>
|
||||
<setting id="cron_schedule" type="text" label="30064" default="0 0 * * *" visible="eq(-3,4)" enable="eq(-4,true)"/>
|
||||
<setting id="cron_shutdown" type="bool" label="30076" default="false" enable="eq(-5,true)" />
|
||||
<setting id="schedule_miss" type="bool" label="30109" default="false" enable="eq(-5,true)" />
|
||||
<setting id="cron_shutdown" type="bool" label="30076" default="false" enable="eq(-6,true)" />
|
||||
</category>
|
||||
</settings>
|
||||
|
@ -34,8 +34,8 @@ class BackupScheduler:
|
||||
|
||||
fh.close()
|
||||
|
||||
#ADD A CHECK HERE FOR IF THE USER EVEN WANTS THIS
|
||||
if(0 < nr <= time.time()):
|
||||
#if we missed and the user wants to play catch-up
|
||||
if(0 < nr <= time.time() and utils.getSetting('schedule_miss') == 'true'):
|
||||
utils.log("scheduled backup was missed, doing it now...")
|
||||
progress_mode = int(utils.getSetting('progress_mode'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user