# xenticorp1/xenticorp-ripnamer architecture

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

- Interactive diagram: https://gitdiagram.com/xenticorp1/xenticorp-ripnamer
- Repository: https://github.com/xenticorp1/xenticorp-ripnamer

## Overview

Ripnamer renames MakeMKV video rips into Jellyfin episode paths. Its main workflow is to select a rip folder and TMDb show, choose episode numbering, preview file-to-episode matches, then rename in place or move into a library. It also supports alternate episode orderings, cross-season timelines and specials, manual episode assignment, runtime checks, and headless plan/apply commands. The graph includes the documented workflow and indexed core modules; some implementation paths and call relationships are unsampled, so uncertain links are omitted.

Main entry points: [`ripnamer_app/ui/app.py`](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/app.py) (Desktop workflow), [`ripnamer_app/ui/theme.py`](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/theme.py) (Theme and styling), [`ripnamer_app/tmdb.py`](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/tmdb.py) (TMDb client), [`ripnamer_app/config.py`](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/config.py) (Configuration and resources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_desktop["Desktop workflow<br/>[app.py]"]
  node_episode_picker["Episode picker<br/>[picker.py]"]
  node_settings_dialog["Settings dialog<br/>[settings.py]"]
  node_theme["Theme and styling<br/>[theme.py]"]
  node_brand_fonts["Brand fonts<br/>[fonts.py]"]
end

subgraph group_metadata["Episode metadata"]
  node_tmdb_client["TMDb client<br/>[tmdb.py]"]
  node_tmdb_service{{"TMDb API"}}
  node_disc_parser["Disc label parsing<br/>[discs.py]"]
end

subgraph group_planning["Scan and planning"]
  node_media_scan["Video scan and durations<br/>[media.py]"]
  node_rename_planner["Episode matching and names<br/>[planner.py]"]
  node_headless_cli["Headless plan and apply<br/>[cli.py]"]
end

subgraph group_execution["Rename and settings"]
  node_config["Configuration and resources<br/>[config.py]"]
  node_config_store[("Settings file")]
  node_file_mover["Move and undo<br/>[mover.py]"]
end

node_user(("User"))

node_user -->|"selects and previews"| node_desktop
node_desktop -->|"searches episodes"| node_tmdb_client
node_tmdb_client -->|"requests metadata"| node_tmdb_service
node_desktop -->|"scans folder"| node_media_scan
node_desktop -->|"previews matches"| node_rename_planner
node_desktop -->|"renames files"| node_file_mover
node_desktop -->|"sets episode"| node_episode_picker
node_user -->|"runs plan or apply"| node_headless_cli
node_settings_dialog -->|"saves settings"| node_config
node_config -->|"reads and writes"| node_config_store
node_desktop -->|"uses styling"| node_theme
node_theme -->|"uses fonts"| node_brand_fonts

click node_desktop "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/app.py"
click node_episode_picker "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/picker.py"
click node_settings_dialog "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/settings.py"
click node_theme "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/theme.py"
click node_brand_fonts "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/fonts.py"
click node_tmdb_client "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/tmdb.py"
click node_disc_parser "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/discs.py"
click node_media_scan "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/media.py"
click node_rename_planner "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/planner.py"
click node_headless_cli "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/cli.py"
click node_config "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/config.py"
click node_file_mover "https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/mover.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_desktop,node_episode_picker,node_settings_dialog,node_theme,node_brand_fonts,node_user toneBlue
class node_tmdb_client,node_tmdb_service,node_disc_parser toneAmber
class node_media_scan,node_rename_planner,node_headless_cli toneMint
class node_config,node_config_store,node_file_mover toneRose
```

## Components

### Desktop interface

- [Desktop workflow](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/app.py): `ripnamer_app/ui/app.py`
- [Episode picker](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/picker.py): `ripnamer_app/ui/picker.py`
- [Settings dialog](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/settings.py): `ripnamer_app/ui/settings.py`
- [Theme and styling](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/theme.py): `ripnamer_app/ui/theme.py`
- [Brand fonts](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/ui/fonts.py): `ripnamer_app/ui/fonts.py`

### Episode metadata

- [TMDb client](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/tmdb.py): `ripnamer_app/tmdb.py`
- **TMDb API**
- [Disc label parsing](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/discs.py): `ripnamer_app/discs.py`

### Scan and planning

- [Video scan and durations](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/media.py): `ripnamer_app/media.py`
- [Episode matching and names](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/planner.py): `ripnamer_app/planner.py`
- [Headless plan and apply](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/cli.py): `ripnamer_app/cli.py`

### Rename and settings

- [Configuration and resources](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/config.py): `ripnamer_app/config.py`
- **Settings file**
- [Move and undo](https://github.com/xenticorp1/xenticorp-ripnamer/blob/main/ripnamer_app/mover.py): `ripnamer_app/mover.py`

### Other components

- **User**

## Connections

- User → Desktop workflow: selects and previews (evidence: `README.md`)
- Desktop workflow → TMDb client: searches episodes (evidence: `README.md`)
- TMDb client → TMDb API: requests metadata (evidence: `README.md`)
- Desktop workflow → Video scan and durations: scans folder (evidence: `README.md`)
- Desktop workflow → Episode matching and names: previews matches (evidence: `README.md`)
- Desktop workflow → Move and undo: renames files (evidence: `README.md`)
- Desktop workflow → Episode picker: sets episode (evidence: `README.md`)
- User → Headless plan and apply: runs plan or apply (evidence: `ripnamer_app/cli.py`)
- Settings dialog → Configuration and resources: saves settings (evidence: `ripnamer_app/ui/settings.py`)
- Configuration and resources → Settings file: reads and writes (evidence: `ripnamer_app/config.py`)
- Desktop workflow → Theme and styling: uses styling (evidence: `ripnamer_app/ui/app.py`)
- Theme and styling → Brand fonts: uses fonts (evidence: `ripnamer_app/ui/theme.py`)
