mame stuff
This commit is contained in:
@@ -65,6 +65,11 @@ if (session_data.data_store.wtvsec_login) {
|
|||||||
var wtv_script_mod = parseInt(session_data.get("wtv-script-mod"));
|
var wtv_script_mod = parseInt(session_data.get("wtv-script-mod"));
|
||||||
if ((request_headers.query.reconnect || request_headers.query.relogin) && wtv_script_id != 0) send_tellyscript = false;
|
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 (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") {
|
||||||
|
send_tellyscript = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (send_tellyscript) {
|
if (send_tellyscript) {
|
||||||
if (minisrv_config.services[service_name].send_tellyscript_ssid_whitelist) {
|
if (minisrv_config.services[service_name].send_tellyscript_ssid_whitelist) {
|
||||||
var send_telly_to_ssid = (minisrv_config.services[service_name].send_tellyscript_ssid_whitelist.findIndex(element => element == socket.ssid) != -1)
|
var send_telly_to_ssid = (minisrv_config.services[service_name].send_tellyscript_ssid_whitelist.findIndex(element => element == socket.ssid) != -1)
|
||||||
|
|||||||
@@ -423,6 +423,7 @@ class WTVShared {
|
|||||||
parseSSID(ssid) {
|
parseSSID(ssid) {
|
||||||
const boxTypeMapping = {
|
const boxTypeMapping = {
|
||||||
"01": "Internal",
|
"01": "Internal",
|
||||||
|
"71": "MAME",
|
||||||
"81": "Retail",
|
"81": "Retail",
|
||||||
"91": "Viewer"
|
"91": "Viewer"
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class WTVShenanigans {
|
class WTVShenanigans {
|
||||||
minisrv_config = null;
|
minisrv_config = null;
|
||||||
shenanigans = {
|
shenanigans = {
|
||||||
// PLEASE NOTE: anything that is broken with any shenigan level besides "false" is NOT a bug!!!!
|
// PLEASE NOTE: anything that is broken with any shenanigan level besides "false" is NOT a bug!!!!
|
||||||
|
|
||||||
"NO_SHENANIGANS": false, // no shenanigans, minisrv as intended, most secure option
|
"NO_SHENANIGANS": false, // no shenanigans, minisrv as intended, most secure option
|
||||||
"ENABLE_TRICKS_URLACCESS": 1, // allows users to use wtv-tricks:/access?url=
|
"ENABLE_TRICKS_URLACCESS": 1, // allows users to use wtv-tricks:/access?url=
|
||||||
|
|||||||
Reference in New Issue
Block a user