Expand description
File matching engine that uses AI content analysis to align video and subtitle files.
This module provides the MatchEngine, which orchestrates discovery,
content sampling, AI analysis, and caching to generate subtitle matching operations.
§Examples
ⓘ
use subx_cli::core::matcher::engine::{MatchEngine, MatchConfig};
// Create a match engine with default configuration
let config = MatchConfig { confidence_threshold: 0.8, max_sample_length: 1024, enable_content_analysis: true, backup_enabled: false };
let engine = MatchEngine::new(Box::new(DummyAI), config);Structs§
- Match
Audit - Result of the auditable match planning pass: accepted operations plus rejected candidates.
- Match
Config - Configuration settings for the file matching engine.
- Match
Engine - Engine for matching video and subtitle files using AI analysis.
- Match
Operation - Match operation result representing a single video-subtitle match.
- Operation
Error - Self-contained per-operation error metadata for machine-readable output.
- Operation
Outcome - Per-operation outcome captured by
MatchEngine::execute_operations_audit. - Rejected
Candidate - AI-suggested candidate that did not become a match operation.
Enums§
- Conflict
Resolution - Strategy for handling filename conflicts during relocation
- File
Relocation Mode - File relocation mode for matched subtitle files
Functions§
- apply_
cached_ operations - Replay a frozen set of cached match operations.