fix(arr): drop the forced flag from subtitle grab

§15 gives forced tracks no sidecar name and never lets them
satisfy a want; ranking already rejects every forced candidate
(#222). A grab endpoint accepting `forced: true` had nowhere
coherent to put the result, so the flag and its stale test are
gone (#233).
This commit is contained in:
Miguel Palhas
2026-08-25 08:42:56 +01:00
parent 1126a52bbb
commit 097e081f4d
2 changed files with 25 additions and 44 deletions
+4 -3
View File
@@ -205,8 +205,10 @@ export type SubtitleWriteOutcome =
/**
* One click: the daemon fetches the candidate, runs `alass` over it and
* writes the sidecar (§15). The candidate's own flags travel with it —
* nothing on the server remembers a search.
* writes the sidecar (§15). The candidate's own SDH flag travels with it —
* nothing on the server remembers a search. No `forced` flag to send: a
* forced candidate is never eligible, so the panel never offers a grab
* button for one (§15, issue #233).
*
* A grab can fail because the candidate itself expired between the search
* and the click (issue #221) — the server reports that as `code:
@@ -224,7 +226,6 @@ export async function grabSubtitle(
provider: candidate.provider,
candidate_id: candidate.candidate_id,
language: candidate.language,
forced: candidate.forced,
sdh: candidate.sdh,
}),
});