# mvdctop/movie_data_capture architecture

> Architecture diagram of the GitHub repository mvdctop/movie_data_capture, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mvdctop/movie_data_capture
- Repository: https://github.com/mvdctop/movie_data_capture

## Overview

Movie Data Capture scans movie files, identifies a title or catalog number, retrieves metadata, then organizes media-library output such as metadata files and images. The excerpts show the scraper/parser and image-cropping internals, while the README itself provides no capability detail. Several orchestration calls and output steps are only partially sampled, so those relationships are omitted or marked unverified rather than treated as confirmed.

Main entry points: [`Movie_Data_Capture.py`](https://github.com/mvdctop/movie_data_capture/blob/main/Movie_Data_Capture.py) (Capture runner), [`scrapinglib/api.py`](https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/api.py) (Metadata orchestration), [`config.py`](https://github.com/mvdctop/movie_data_capture/blob/main/config.py) (Configuration), [`scrapinglib/parser.py`](https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/parser.py) (Site parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Capture workflow"]
  node_capture["Capture runner"]
  node_identify["Number parsing<br/>[number_parser.py]"]
end

subgraph group_scraping["Metadata scraping"]
  node_metadata["Metadata orchestration<br/>[api.py]"]
  node_parser["Site parser<br/>[parser.py]"]
  node_http["HTTP requests<br/>[httprequest.py]"]
  node_imdb["IMDb source<br/>[imdb.py]"]
  node_tmdb["TMDB source<br/>[tmdb.py]"]
  node_scraper["Scraper facade<br/>[scraper.py]"]
end

subgraph group_media["Media processing"]
  node_media_core["Media organization<br/>[core.py]"]
  node_image_crop["Cover cropping<br/>[__init__.py]"]
  node_face_model["Face detection<br/>[hog.py]"]
  node_image_model_alias["CNN model alias<br/>[cnn.py]"]
end

subgraph group_settings["Runtime support"]
  node_utility["File and network helpers<br/>[ADC_function.py]"]
  node_config["Configuration<br/>[config.py]"]
end

node_library(("Movie collection"))
node_external_sites(("Metadata sites"))

node_library -.->|"scans files"| node_capture
node_capture -.->|"parses numbers"| node_identify
node_capture -.->|"requests metadata"| node_scraper
node_capture -.->|"organizes media"| node_media_core
node_metadata -->|"uses parser"| node_parser
node_metadata -->|"loads source"| node_imdb
node_metadata -.->|"selects source"| node_tmdb
node_parser -->|"fetches pages"| node_http
node_http -->|"sends requests"| node_external_sites
node_media_core -->|"uses cropping"| node_image_crop
node_image_crop -->|"detects faces"| node_face_model
node_image_model_alias -->|"delegates detection"| node_face_model
node_media_core -->|"uses helpers"| node_utility
node_capture -->|"reads settings"| node_config
node_metadata -->|"reads settings"| node_config
node_parser -->|"reads settings"| node_config
node_http -->|"reads settings"| node_config

click node_capture "https://github.com/mvdctop/movie_data_capture/blob/main/Movie_Data_Capture.py"
click node_identify "https://github.com/mvdctop/movie_data_capture/blob/main/number_parser.py"
click node_metadata "https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/api.py"
click node_parser "https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/parser.py"
click node_http "https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/httprequest.py"
click node_imdb "https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/imdb.py"
click node_tmdb "https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/tmdb.py"
click node_scraper "https://github.com/mvdctop/movie_data_capture/blob/main/scraper.py"
click node_media_core "https://github.com/mvdctop/movie_data_capture/blob/main/core.py"
click node_image_crop "https://github.com/mvdctop/movie_data_capture/blob/main/ImageProcessing/__init__.py"
click node_face_model "https://github.com/mvdctop/movie_data_capture/blob/main/ImageProcessing/hog.py"
click node_image_model_alias "https://github.com/mvdctop/movie_data_capture/blob/main/ImageProcessing/cnn.py"
click node_utility "https://github.com/mvdctop/movie_data_capture/blob/main/ADC_function.py"
click node_config "https://github.com/mvdctop/movie_data_capture/blob/main/config.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_capture,node_identify toneBlue
class node_metadata,node_parser,node_http,node_imdb,node_tmdb,node_scraper toneAmber
class node_media_core,node_image_crop,node_face_model,node_image_model_alias toneMint
class node_utility,node_config toneRose
class node_library,node_external_sites toneIndigo
```

## Components

### Capture workflow

- [Capture runner](https://github.com/mvdctop/movie_data_capture/blob/main/Movie_Data_Capture.py): `Movie_Data_Capture.py`
- [Number parsing](https://github.com/mvdctop/movie_data_capture/blob/main/number_parser.py): `number_parser.py`

### Metadata scraping

- [Metadata orchestration](https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/api.py): `scrapinglib/api.py`
- [Site parser](https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/parser.py): `scrapinglib/parser.py`
- [HTTP requests](https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/httprequest.py): `scrapinglib/httprequest.py`
- [IMDb source](https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/imdb.py): `scrapinglib/imdb.py`
- [TMDB source](https://github.com/mvdctop/movie_data_capture/blob/main/scrapinglib/tmdb.py): `scrapinglib/tmdb.py`
- [Scraper facade](https://github.com/mvdctop/movie_data_capture/blob/main/scraper.py): `scraper.py`

### Media processing

- [Media organization](https://github.com/mvdctop/movie_data_capture/blob/main/core.py): `core.py`
- [Cover cropping](https://github.com/mvdctop/movie_data_capture/blob/main/ImageProcessing/__init__.py): `ImageProcessing/__init__.py`
- [Face detection](https://github.com/mvdctop/movie_data_capture/blob/main/ImageProcessing/hog.py): `ImageProcessing/hog.py`
- [CNN model alias](https://github.com/mvdctop/movie_data_capture/blob/main/ImageProcessing/cnn.py): `ImageProcessing/cnn.py`

### Runtime support

- [File and network helpers](https://github.com/mvdctop/movie_data_capture/blob/main/ADC_function.py): `ADC_function.py`
- [Configuration](https://github.com/mvdctop/movie_data_capture/blob/main/config.py): `config.py`

### Other components

- **Movie collection**
- **Metadata sites**

## Connections

- Movie collection → Capture runner: scans files
- Capture runner → Number parsing: parses numbers (evidence: `Movie_Data_Capture.py`)
- Capture runner → Scraper facade: requests metadata (evidence: `Movie_Data_Capture.py`)
- Capture runner → Media organization: organizes media (evidence: `Movie_Data_Capture.py`)
- Metadata orchestration → Site parser: uses parser (evidence: `scrapinglib/api.py`)
- Metadata orchestration → IMDb source: loads source (evidence: `scrapinglib/api.py`)
- Metadata orchestration → TMDB source: selects source
- Site parser → HTTP requests: fetches pages (evidence: `scrapinglib/parser.py`)
- HTTP requests → Metadata sites: sends requests (evidence: `scrapinglib/httprequest.py`)
- Media organization → Cover cropping: uses cropping (evidence: `core.py`)
- Cover cropping → Face detection: detects faces (evidence: `ImageProcessing/__init__.py`)
- CNN model alias → Face detection: delegates detection (evidence: `ImageProcessing/cnn.py`)
- Media organization → File and network helpers: uses helpers (evidence: `core.py`)
- Capture runner → Configuration: reads settings (evidence: `Movie_Data_Capture.py`)
- Metadata orchestration → Configuration: reads settings (evidence: `scrapinglib/api.py`)
- Site parser → Configuration: reads settings (evidence: `scrapinglib/parser.py`)
- HTTP requests → Configuration: reads settings (evidence: `scrapinglib/httprequest.py`)
