feat(arr): sync manually grabbed subtitles with alass

The grab handler runs alass before recording the row, replacing the
sidecar with the synced text on acceptance and flagging it as
rejected otherwise (§15). Wires a Syncer into AppState, defaulting
to alass on PATH; the daemon binary points it at config.alass_path.
This commit is contained in:
Miguel Palhas
2026-08-25 01:24:09 +01:00
parent 635a651bee
commit f06e0e94bc
3 changed files with 128 additions and 4 deletions
+2 -1
View File
@@ -150,7 +150,8 @@ async fn run() -> Result<(), Error> {
config.opensubtitles_api_key,
config.opensubtitles_username,
config.opensubtitles_password,
));
))
.with_syncer(arr_subs::Syncer::new().with_binary(config.alass_path.clone()));
let app = arr_api::router(state.clone())
.merge(arr_compat::router(compat))