now generate LC2 telly
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
var minisrv_service_file = true;
|
||||
var template = "";
|
||||
var template_preprocessor = {};
|
||||
|
||||
|
||||
var gourl = "wtv-head-waiter:/login?";
|
||||
|
||||
@@ -59,6 +58,8 @@ if (session_data.data_store.wtvsec_login) {
|
||||
// if relogin and wtv-script-id != 0, skip tellyscript
|
||||
session_data.set("wtv-open-access", (request_headers['wtv-open-access'] == "true") ? true : false);
|
||||
var file_path = null;
|
||||
var template = null;
|
||||
var template_preprocessor = {};
|
||||
var bf0app_update = false;
|
||||
var romtype = session_data.get("wtv-client-rom-type");
|
||||
var bootrom = parseInt(session_data.get("wtv-client-bootrom-version"));
|
||||
@@ -87,8 +88,13 @@ if (session_data.data_store.wtvsec_login) {
|
||||
case "US-WEBSTAR-disk-0MB-16MB-softmodem-CPU5230":
|
||||
prereg_contype = "text/tellyscript";
|
||||
// if wtv-open-access: true then client expects OpenISP
|
||||
/*
|
||||
if (session_data.get("wtv-open-access")) file_path = wtvshared.getServiceDep("/wtv-1800/tellyscripts/LC2/LC2_OpenISP_56k.tok", true);
|
||||
else file_path = wtvshared.getServiceDep("/wtv-1800/tellyscripts/LC2/LC2_WTV_18006138199.tok", true);
|
||||
*/
|
||||
template = wtvshared.getServiceDep("/wtv-1800/tellyscripts/base.template.tsf")
|
||||
if (session_data.get("wtv-open-access")) template += wtvshared.getServiceDep("/wtv-1800/tellyscripts/LC2/LC2.openisp.template.tsf");
|
||||
else template += wtvshared.getServiceDep("/wtv-1800/tellyscripts/LC2/LC2.normal.template.tsf");
|
||||
break;
|
||||
|
||||
case "US-DTV-disk-0MB-32MB-softmodem-CPU5230":
|
||||
@@ -160,7 +166,8 @@ if (session_data.data_store.wtvsec_login) {
|
||||
if (request_headers.query.skip_splash) gourl += "&skip_splash=true";
|
||||
}
|
||||
|
||||
if (!file_path != null && send_tellyscript && !minisrv_config.config.debug_flags.quiet) console.log(" * Sending TellyScript", file_path, "on socket", socket.id);
|
||||
if (file_path != null && send_tellyscript && !minisrv_config.config.debug_flags.quiet) console.log(" * Sending TellyScript", file_path, "on socket", socket.id);
|
||||
if (template != null && send_tellyscript && !minisrv_config.config.debug_flags.quiet) console.log(" * Generating TellyScript on socket", socket.id);
|
||||
|
||||
|
||||
headers = "200 OK\n"
|
||||
|
||||
Reference in New Issue
Block a user