restructure ServiceDeps

This commit is contained in:
zefie
2022-10-09 10:03:11 -04:00
parent 0210e4f9a4
commit 2491f62b89
11 changed files with 13 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ wtv-client-time-zone: GMT -0000
wtv-client-time-dst-rule: GMT wtv-client-time-dst-rule: GMT
wtv-client-date: `+ strftime("%a, %d %b %Y %H:%M:%S", new Date(new Date().toUTCString())) + ` GMT`; wtv-client-date: `+ strftime("%a, %d %b %Y %H:%M:%S", new Date(new Date().toUTCString())) + ` GMT`;
var file_path = __dirname + "/ServiceDeps/premade_tellyscripts/bf0app/bf0app_WTV_18006138199.tok"; var file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/bf0app/bf0app_WTV_18006138199.tok";
if (file_path) { if (file_path) {
request_is_async = true; request_is_async = true;

View File

@@ -77,22 +77,22 @@ if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
case "US-WEBSTAR-disk-0MB-16MB-softmodem-CPU5230": case "US-WEBSTAR-disk-0MB-16MB-softmodem-CPU5230":
prereg_contype = "text/tellyscript"; prereg_contype = "text/tellyscript";
// if wtv-open-access: true then client expects OpenISP // if wtv-open-access: true then client expects OpenISP
if (ssid_sessions[socket.ssid].get("wtv-open-access")) file_path = __dirname + "/ServiceDeps/premade_tellyscripts/LC2/LC2_OpenISP_56k.tok"; if (ssid_sessions[socket.ssid].get("wtv-open-access")) file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/LC2/LC2_OpenISP_56k.tok";
else var file_path = __dirname + "/ServiceDeps/premade_tellyscripts/LC2/LC2_WTV_18006138199.tok"; else var file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/LC2/LC2_WTV_18006138199.tok";
break; break;
case "US-DTV-disk-0MB-32MB-softmodem-CPU5230": case "US-DTV-disk-0MB-32MB-softmodem-CPU5230":
if (wtvshared.isMiniBrowser(ssid_sessions[socket.ssid])) { if (wtvshared.isMiniBrowser(ssid_sessions[socket.ssid])) {
prereg_contype = "text/tellyscript"; prereg_contype = "text/tellyscript";
if (ssid_sessions[socket.ssid].get("wtv-open-access")) file_path = __dirname + "/ServiceDeps/premade_tellyscripts/LC2/LC2_OpenISP_56k.tok"; if (ssid_sessions[socket.ssid].get("wtv-open-access")) file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/LC2/LC2_OpenISP_56k.tok";
else file_path = __dirname + "/ServiceDeps/premade_tellyscripts/LC2/LC2_WTV_18006138199.tok"; else file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/LC2/LC2_WTV_18006138199.tok";
} else { } else {
prereg_contype = "text/dialscript"; prereg_contype = "text/dialscript";
if (ssid_sessions[socket.ssid].get("wtv-lan") == "true") { if (ssid_sessions[socket.ssid].get("wtv-lan") == "true") {
file_path = __dirname + "/ServiceDeps/premade_tellyscripts/UTV/utv_hsd.tok"; file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/UTV/utv_hsd.tok";
} else { } else {
// todo OpenISP telly // todo OpenISP telly
file_path = __dirname + "/ServiceDeps/premade_tellyscripts/UTV/utv_normal.tok"; file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/UTV/utv_normal.tok";
} }
} }
break; break;
@@ -100,8 +100,8 @@ if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
case "bf0app": case "bf0app":
prereg_contype = "text/tellyscript"; prereg_contype = "text/tellyscript";
// if wtv-open-access: true then client expects OpenISP // if wtv-open-access: true then client expects OpenISP
if (ssid_sessions[socket.ssid].get("wtv-open-access")) file_path = __dirname + "/ServiceDeps/premade_tellyscripts/bf0app/bf0app_OISP.tok"; if (ssid_sessions[socket.ssid].get("wtv-open-access")) file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/bf0app/bf0app_OISP.tok";
else file_path = __dirname + "/ServiceDeps/premade_tellyscripts/bf0app/bf0app_WTV_18006138199.tok"; else file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/bf0app/bf0app_WTV_18006138199.tok";
break; break;
// the following are not yet zefie generated and may have an unknown username/password attached // the following are not yet zefie generated and may have an unknown username/password attached
@@ -109,8 +109,8 @@ if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
case "JP-Fiji": case "JP-Fiji":
prereg_contype = "text/tellyscript"; prereg_contype = "text/tellyscript";
// if wtv-open-access: true then client expects OpenISP // if wtv-open-access: true then client expects OpenISP
if (ssid_sessions[socket.ssid].get("wtv-open-access")) var file_path = __dirname + "/ServiceDeps/premade_tellyscripts/FIJI/dc_production_normal.tok"; if (ssid_sessions[socket.ssid].get("wtv-open-access")) var file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/FIJI/dc_production_normal.tok";
else var file_path = __dirname + "/ServiceDeps/premade_tellyscripts/FIJI/dc_production_normal.tok"; else var file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/FIJI/dc_production_normal.tok";
break; break;
default: default:
@@ -120,7 +120,7 @@ if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
if (socket.ssid.substr(0, 8) == "MSTVSIMU") { if (socket.ssid.substr(0, 8) == "MSTVSIMU") {
prereg_contype = "text/dialscript"; prereg_contype = "text/dialscript";
var file_path = __dirname + "/ServiceDeps/premade_tellyscripts/UTV/utv_hsd.tok"; var file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/UTV/utv_hsd.tok";
} }
} }
@@ -129,7 +129,7 @@ if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
// assume old classic in flash mode, override user setting and send tellyscript // assume old classic in flash mode, override user setting and send tellyscript
// because it is required to proceed in flash mode // because it is required to proceed in flash mode
prereg_contype = "text/tellyscript"; prereg_contype = "text/tellyscript";
var file_path = __dirname + "/ServiceDeps/premade_tellyscripts/bf0app/bf0app_WTV_18006138199.tok"; var file_path = __dirname + "/ServiceDeps/wtv-1800/tellyscripts/bf0app/bf0app_WTV_18006138199.tok";
var bf0app_update = true; var bf0app_update = true;
ssid_sessions[socket.ssid].set("bf0app_update", bf0app_update); ssid_sessions[socket.ssid].set("bf0app_update", bf0app_update);
} }