Orchestrator (core/orchestrator.py)
Orquestrador is the main workflow coordinator.
Class: Orquestrador
Initialization
def __init__(
self,
config: Config,
database: OrganizationDatabase,
link_registry: LinkRegistry,
scanners: dict[MediaType, FileScannerInterface],
classifiers: dict[MediaType, MediaClassifierInterface],
validators: list[ValidatorInterface],
organizers: dict[MediaType, OrganizadorInterface],
metadata_enricher: MetadataEnricher | None = None,
genre_guard: GenreGuard | None = None,
trash_manager: TrashManager | None = None,
)
Main Methods
| Method | Description |
|---|---|
processar_novos_medias() |
Execute full organization cycle |
verificar_e_organizar() |
Process single file |
obter_estatisticas() |
Get operation statistics |
Processing Cycle
- Scan download directories
- Filter already organized files
- Validate file completeness
- Classify media type
- Apply global validators
- Enrich metadata (if enabled)
- Route to type-specific organizer
- Track in database