add 2 games, fix compression, update download-o-rama

This commit is contained in:
zefie
2025-08-14 00:23:16 -04:00
parent 9a9d161dc1
commit e8922bddfe
213 changed files with 1363 additions and 36 deletions

View File

@@ -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
}
}
}