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§

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.

Enums§

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