From 097f52d9dcd1a8949121e35b330b7a24f3307e1a Mon Sep 17 00:00:00 2001 From: zefie Date: Mon, 11 Aug 2025 16:29:40 -0400 Subject: [PATCH] fixes --- .../includes/ServiceVault/wtv-1800/preregister.js | 8 ++++---- .../includes/classes/WTVClientCapabilities.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-1800/preregister.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-1800/preregister.js index 940c674b..5fd0c145 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-1800/preregister.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-1800/preregister.js @@ -56,7 +56,7 @@ 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); + session_data.set("wtv-open-access", (request_headers['wtv-open-access'] === "true") ? true : false); var file_path = null; var template = null; var template_preprocessor = {}; @@ -69,7 +69,7 @@ if (session_data.data_store.wtvsec_login) { if ((request_headers.query.reconnect || request_headers.query.relogin) && wtv_script_id != 0) send_tellyscript = false; if (wtv_script_id !== 0 && wtv_script_mod !== 0) send_tellyscript = false; if (!minisrv_config.services[service_name].send_tellyscript_to_mame) { - if (wtvshared.parseSSID(socket.ssid).boxType == "MAME") { + if (wtvshared.parseSSID(socket.ssid).boxType === "MAME") { send_tellyscript = false; } } @@ -109,7 +109,7 @@ if (session_data.data_store.wtvsec_login) { else file_path = wtvshared.getServiceDep("/wtv-1800/tellyscripts/LC2/LC2_WTV_18006138199.tok", true); } else { prereg_contype = "text/dialscript"; - if (session_data.get("wtv-lan") == "true") { + if (session_data.get("wtv-lan") === "true") { file_path = wtvshared.getServiceDep("/wtv-1800/tellyscripts/UTV/utv_hsd.tok", true); } else { // todo OpenISP telly @@ -143,7 +143,7 @@ if (session_data.data_store.wtvsec_login) { break; } - if (socket.ssid.slice(0, 8) == "MSTVSIMU") { + if (socket.ssid.slice(0, 8) === "MSTVSIMU") { prereg_contype = "text/dialscript"; var file_path = wtvshared.getServiceDep("/wtv-1800/tellyscripts/UTV/utv_hsd.tok", true); } diff --git a/zefie_wtvp_minisrv/includes/classes/WTVClientCapabilities.js b/zefie_wtvp_minisrv/includes/classes/WTVClientCapabilities.js index 1505f60a..89d4988f 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVClientCapabilities.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVClientCapabilities.js @@ -99,7 +99,7 @@ class WTVClientCapabilities { //In case remaining hex length (or initial) is not multiple of 8 let blockSize = remainingSize < 8 ? remainingSize : 8; - binary += parseInt(hex.slice(p * 8, blockSize), 16).toString(2); + binary += parseInt(hex.slice(p * 8, p * 8 + blockSize), 16).toString(2); remainingSize -= blockSize; }