const minisrv_service_file = true; if (request_headers.query.group) { if (request_headers['wtv-request-type'] === "download") { const wtvdl = new WTVDisk(minisrv_config, service_name); headers = "200 OK\nContent-Type: " + wtvdl.content_type; wtvdl.deleteGroup(request_headers.query.group); wtvdl.deleteGroupUpdate(request_headers.query.group, request_headers.query.path || null); data = wtvdl.getDownloadList(); const client_group_data = wtvdl.getGroupDataFromClientPost(request_headers.post_data.toString(CryptoJS.enc.Latin1)); session_data.setTicketData("client_disk_group_data", client_group_data); if (minisrv_config.config.show_diskmap) console.log("Client POST Data:", client_group_data) if (minisrv_config.config.show_diskmap) console.log("DiskMap Data:", data); } else { const query = request_headers.query; query['url'] = 'wtv-disk:/delete-group'; const queryString = Object.keys(query) .map(key => wtvshared.escape(key) + '=' + wtvshared.escape(query[key])) .join('&'); headers = "302 Found\nLocation: wtv-disk:/content/DownloadScreen.tmpl" + (queryString ? ("?" + queryString) : ""); } } else { const client_group_data = session_data.getTicketData("client_disk_group_data"); if (!client_group_data) { headers = "302 Found\nLocation: wtv-disk:/get-group-data"; } else { session_data.deleteTicketData("client_disk_group_data"); headers = "200 OK\nContent-Type: text/html\nwtv-expire-all: wtv-disk:/delete-group"; data = `
| Group | Path | State | Last Checkup |
| ${group} | ${path} | ${state} | ${date} |
Manual Delete: