add 2 games, fix compression, update download-o-rama
This commit is contained in:
@@ -900,13 +900,13 @@ class WTVClientSessionData {
|
||||
this.SaveIfRegistered(true);
|
||||
}
|
||||
|
||||
getBoxName() {
|
||||
getBoxName(full = true) {
|
||||
switch (this.get("wtv-client-rom-type")) {
|
||||
case "US-DTV-disk-0MB-16MB-softmodem-CPU5230":
|
||||
case "US-DTV-disk-0MB-32MB-softmodem-CPU5230":
|
||||
case "US-WEBSTAR-disk-0MB-8MB-softmodem-CPU5230":
|
||||
case "US-WEBSTAR-disk-0MB-16MB-softmodem-CPU5230":
|
||||
return "satellite receiver";
|
||||
return (full ? "WebTV satellite receiver" : "satellite receiver");
|
||||
|
||||
case "US-LC2-flashdisk-0MB-16MB-softmodem-CPU5230":
|
||||
case "US-LC2-disk-0MB-8MB":
|
||||
@@ -920,10 +920,10 @@ class WTVClientSessionData {
|
||||
case "JP-LC2-disk-0MB-8MB-CPU5230":
|
||||
case "JP-LC2-disk-0MB-16MB-CPU5230":
|
||||
case "JP-LC2-flash-2MB-8MB-CPU5230":
|
||||
return "Plus receiver";
|
||||
return (full ? "WebTV Plus receiver" : "Plus receiver");
|
||||
|
||||
default:
|
||||
return "Internet terminal";
|
||||
return (full ? "WebTV Internet terminal" : "Internet terminal");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -98,8 +98,7 @@ class WTVGuide {
|
||||
}
|
||||
// replaces <boxname> with the friendly name of the type of unit the user has
|
||||
while (definition.indexOf("<boxname>") >= 0) {
|
||||
const romtype = this.session_data.get("wtv-client-rom-type");
|
||||
const boxname = this.wtvshared.getBoxName(romtype);
|
||||
const boxname = this.session_data.getBoxName(false);
|
||||
definition = definition.replace(/\<boxname\>/g, boxname);
|
||||
}
|
||||
// replaces <boxname_plus> with either "WebTV" or "WebTV Plus" depending on user box type
|
||||
|
||||
@@ -61,7 +61,7 @@ class WTVMime {
|
||||
// should we bother to compress?
|
||||
let content_type = "";
|
||||
if (typeof (headers_obj) === 'string') content_type = headers_obj;
|
||||
else content_type = (typeof (headers_obj["wtv-modern-content-type"]) !== 'undefined') ? headers_obj["wtv-modern-content-type"] : headers_obj["Content-type"];
|
||||
else content_type = headers_obj["Content-type"] || headers_obj["wtv-modern-content-type"];
|
||||
|
||||
if (content_type) {
|
||||
// both lzpf and gzip
|
||||
@@ -73,7 +73,7 @@ class WTVMime {
|
||||
if (content_type.match(/^audio\/(x-)?(s3m|mod|xm|midi|wav|wave|aif(f)?)$/)) compress_data = true; // s3m, mod, xm, midi & wav
|
||||
if (content_type.match(/^application\/karaoke$/)) compress_data = true; // midi karaoke
|
||||
if (content_type.match(/^binary\/(x-wtv-approm|doom-data)/)) compress_data = true; // approms and DOOM WADs
|
||||
if (content_type.match(/^wtv\/download-list$/)) compress_data = true; // WebTV Download List
|
||||
if (content_type.match(/^wtv\/(download-list|jack-data)$/)) compress_data = true; // WebTV Download List
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user