Skip to main content

Crate dialog_detective

Crate dialog_detective 

Source
Expand description

DialogDetective - Automatically identify and rename unknown video files

This library provides the core functionality for investigating video files, analyzing their audio content, and solving the mystery of their true identity.

Modules§

model_downloader
Whisper model download and cache management

Structs§

MatchResult
Represents the result of matching a video file to an episode
PlannedOperation
Represents a planned file operation (rename or copy)

Enums§

AudioExtractionError
Errors that can occur during audio extraction
CacheError
Errors that can occur during cache operations
DialogDetectiveError
Top-level error type for DialogDetective operations
EpisodeMatchingError
Errors that can occur during episode matching
FileOperationError
Errors that can occur during file operations
FileResolverError
Errors that can occur during file resolution
MatcherType
AI matcher type selection
MetadataRetrievalError
Errors that can occur during metadata retrieval operations.
ProgressEvent
Progress event emitted during investigation
SpeechToTextError
Errors that can occur during speech-to-text transcription

Functions§

detect_duplicates
Groups match results by episode and detects duplicates
execute_copy
Executes copy operations to output directory
execute_rename
Executes rename operations in place
format_filename
Formats a filename based on a format string and episode information
investigate_case
Investigates a directory for video files and matches them to episodes
plan_operations
Plans file operations with duplicate handling via suffix strategy
sanitize_filename
Sanitizes a string for use in filenames by replacing problematic characters