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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user