Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/remediation.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async function tickVerifying(rem) {
return; // still extracting — keep waiting until timeout
}

const decoded = await fullDecode(local, { timeoutMs: 300000 });
const decoded = await fullDecode(local, { timeoutMs: 900000 });
if (decoded.pass) {
setRemediationState(rem.episode_id, 'importing', { details: `verified ${record.outputPath}` });
return;
Expand Down Expand Up @@ -172,7 +172,7 @@ async function tickImporting(rem) {
try {
await waitForStableFile(local, { intervalMs: 5000, checks: 2, maxWaitMs: 120000 });
} catch { return; }
const decoded = await fullDecode(local, { timeoutMs: 300000 });
const decoded = await fullDecode(local, { timeoutMs: 900000 });
if (decoded.pass) {
setRemediationState(rem.episode_id, 'swapped', { details: 'replacement verified on disk' });
logAction(rem, 'remediation_swapped', 'Replacement downloaded, verified clean, and imported. Old corrupt file replaced.');
Expand Down
2 changes: 1 addition & 1 deletion src/sonarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export async function ensureUpcomingEpisodes(seriesId, season, episode, preloade
// decode confirm and go straight to remediation.
const { fullDecode } = await import('./decoder.js');
const confirm = localPath
? await fullDecode(localPath, { timeoutMs: 300000 })
? await fullDecode(localPath, { timeoutMs: 900000 })
: { pass: false, error: 'local file not mounted - decode confirm skipped' };
if (confirm.pass) {
// Tier 1/2 was a false positive (e.g. -ss tail artifact).
Expand Down
Loading