fix disk (for real) + other

This commit is contained in:
zefie
2025-08-09 02:32:34 -04:00
parent 4105300f1b
commit d5aa7a6341
5 changed files with 13 additions and 39 deletions

View File

@@ -150,14 +150,9 @@ class WTVDownloadList {
*/
get(file, path, source, group, checksum = null, uncompressed_size = null, original_filename = null, file_permission = 'r') {
if (original_filename) {
file = file.split('/');
const file_name = file[file.length - 1];
path = path.replace(file_name, original_filename);
file.pop();
if (file.length > 0) file = file.join('/') + '/' + original_filename;
else file = original_filename;
path = path.replace(file, original_filename);
}
this.download_list += `GET ${file}\n`;
this.download_list += `GET ${original_filename || file}\n`;
source = source.replace(/\\/g, "/");
this.download_list += `group: ${group}-UPDATE\n`;

View File

@@ -176,34 +176,6 @@ class WTVShared {
return out;
}
/**
* Gets the box name based on the client ROM type
* @param {string} client_rom_type The client ROM type
* @returns {string} The box name
*/
getBoxName(client_rom_type) {
switch (client_rom_type) {
case "bf0app":
case "bfeapp":
case "US-BPS-flashdisk-0MB-8MB-softmodem-CPU5230":
case "US-BPS-flashdisk-0MB-16MB-softmodem-CPU5230":
return "WebTV Internet Terminal";
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 "WebTV Satellite Receiver";
case "US-LC2-disk-0MB-8MB":
case "US-LC2-disk-0MB-8MB-softmodem-CPU5230":
case "US-LC2-flashdisk-0MB-16MB-softmodem-CPU5230":
return "WebTV Plus Internet Receiver";
default:
return "WebTV Internet Receiver";
}
}
/**
* Calculates the CRC of an SSID, WNI Style
* @param {string} ssid