change execute to execute_end

- add execute_start support
- can use both
This commit is contained in:
zefie
2021-08-12 17:43:46 -04:00
parent 177765bc9c
commit d9fdad4b04
2 changed files with 5 additions and 10 deletions

View File

@@ -2,8 +2,7 @@
"ModemFirmware": { "ModemFirmware": {
"base": "file://Disk/Browser/Modem_Firmware/", "base": "file://Disk/Browser/Modem_Firmware/",
"location": "content/Modem_Firmware/", "location": "content/Modem_Firmware/",
"execute": "client:ModemReload", "execute_end": "client:ModemReload",
"execute_when": "atEnd",
"service_owned": true, "service_owned": true,
"files": [ "files": [
{ {

View File

@@ -17,10 +17,8 @@ if (request_headers['wtv-request-type'] == 'download') {
}); });
// create WebTV Download List // create WebTV Download List
if (diskmap_group_data.execute && diskmap_group_data.execute_when) { if (diskmap_group_data.execute_start) {
if (diskmap_group_data.execute_when.toLowerCase().match(/start/)) { wtvdl.execute(diskmap_group_data.execute_start);
wtvdl.execute(diskmap_group_data.execute);
}
} }
console.log(diskmap_group_data.client_group_data); console.log(diskmap_group_data.client_group_data);
@@ -101,10 +99,8 @@ if (request_headers['wtv-request-type'] == 'download') {
} }
if (diskmap_group_data.execute && diskmap_group_data.execute_when) { if (diskmap_group_data.execute_end) {
if (diskmap_group_data.execute_when.toLowerCase().match(/end/)) { wtvdl.execute(diskmap_group_data.execute_end);
wtvdl.execute(diskmap_group_data.execute);
}
} }
if (files_to_send > 0) { if (files_to_send > 0) {