Drive Fix

This commit is contained in:
2026-03-12 11:14:51 +00:00
parent 5d8796404c
commit 778fabb2e5

View File

@@ -949,9 +949,7 @@ class SettingsService {
const ripMode = String(map.makemkv_rip_mode || 'mkv').trim().toLowerCase() === 'backup'
? 'backup'
: 'mkv';
const sourceArg = ripMode === 'backup'
? this.resolveBackupSourceArg(map, deviceInfo)
: this.resolveSourceArg(map, deviceInfo);
const sourceArg = this.resolveSourceArg(map, deviceInfo);
const rawSelectedTitleId = normalizeNonNegativeInteger(options?.selectedTitleId);
const parsedExtra = splitArgs(map.makemkv_rip_extra_args);
let extra = [];
@@ -1010,20 +1008,6 @@ class SettingsService {
return { cmd, args: [...baseArgs, ...extra] };
}
resolveBackupSourceArg(map, deviceInfo = null) {
const rawDeviceIndex = Number(deviceInfo?.index);
if (Number.isFinite(rawDeviceIndex) && rawDeviceIndex >= 0) {
return `disc:${Math.trunc(rawDeviceIndex)}`;
}
const rawConfiguredIndex = Number(map?.makemkv_source_index);
if (Number.isFinite(rawConfiguredIndex) && rawConfiguredIndex >= 0) {
return `disc:${Math.trunc(rawConfiguredIndex)}`;
}
return 'disc:0';
}
async buildMakeMKVRegisterConfig() {
const map = await this.getSettingsMap();
const registrationKey = String(map.makemkv_registration_key || '').trim();