Skip to main content

Module engine

Module engine 

Source
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§

MatchAudit
Result of the auditable match planning pass: accepted operations plus rejected candidates.
MatchConfig
Configuration settings for the file matching engine.
MatchEngine
Engine for matching video and subtitle files using AI analysis.
MatchOperation
Match operation result representing a single video-subtitle match.
OperationError
Self-contained per-operation error metadata for machine-readable output.
OperationOutcome
Per-operation outcome captured by MatchEngine::execute_operations_audit.
RejectedCandidate
AI-suggested candidate that did not become a match operation.

Enums§

ConflictResolution
Strategy for handling filename conflicts during relocation
FileRelocationMode
File relocation mode for matched subtitle files

Functions§

apply_cached_operations
Replay a frozen set of cached match operations.