From 13688106897b4ceed271e7208d1009c8ab529b27 Mon Sep 17 00:00:00 2001 From: ponzischeme89 Date: Sat, 18 Apr 2026 07:51:16 +1200 Subject: [PATCH] Further tweaks --- AGENT.md | 52 +++++++++-------------- docker-compose.proxy.yml | 6 ++- docker-compose.yml | 6 ++- frontend/src/components/AppSidebar.svelte | 17 +++----- frontend/src/components/Footer.svelte | 17 +------- frontend/src/components/Header.svelte | 24 ----------- frontend/src/components/SiteHeader.svelte | 21 --------- server/logging_utils.py | 28 ++++++++++-- 8 files changed, 58 insertions(+), 113 deletions(-) diff --git a/AGENT.md b/AGENT.md index 5d98e20..8c38cd6 100644 --- a/AGENT.md +++ b/AGENT.md @@ -1,14 +1,10 @@
- - -

Your subtitles deserve metadata. Sublogue adds it.

-
-Sublogue is a lightweight open-source tool for enriching SRT files. Pull metadata from OMDb, TMDB, or TVMaze and automatically append plot summaries, runtimes, directors, and cast details to the start or end (yes, *end*) of your subtitles. +Sublogue is a lightweight private tool for enriching SRT files. Pull metadata from OMDb, TMDb, or TVMaze and automatically append plot summaries, runtimes, directors, and cast details to the start or end of your subtitles. -Additionally, Sublogue can clean junk out of your subtitles — automatically or on demand. Yes, even those “Downloaded from OpenSubtitles” lines that haunt every movie night.. +Additionally, Sublogue can clean junk out of your subtitles automatically or on demand. Why? Because if the cast list and IMDb/RT rating show up in the first minute, my wife asks fewer questions and we actually get to watch the movie. @@ -22,31 +18,27 @@ Why? Because if the cast list and IMDb/RT rating show up in the first minute, my - Clean, fast web UI for scanning and batch processing built with Svelte (frontend) + Python/Flask (server) - Three themes included: OLED, Ocean, and Dracula White -## Screenshots -
- - - - -
- ## Getting started -To get started installing Sublogue, choose on your ☠️ below! +All top-level documentation and runtime logs are kept in the repository root: -Personally, I recommend **Komodo**. It's great. +- `AGENT.md` for setup and operating notes +- `docker-compose.yml` for a direct local deployment +- `docker-compose.proxy.yml` for deployments behind Nginx Proxy Manager +- `sublogue.log` for runtime logging after the server starts -**Quick Start with Docker:** +**Quick start with Docker:** ```sh +docker build -t sublogue:local . docker run -d \ --name sublogue \ -p 5050:5000 \ -v /path/to/config:/config \ -v /path/to/media:/media \ - ghcr.io/ponzischeme89/sublogue:latest + sublogue:local ``` -**Installation Methods (Expand sections to see details)** +**Installation methods**
⚓ Docker Compose @@ -56,7 +48,9 @@ Create `data/` and `media/` folders next to the compose file, then run: version: "3.9" services: sublogue: - image: ghcr.io/ponzischeme89/sublogue:latest + build: + context: . + image: sublogue:local container_name: sublogue restart: unless-stopped environment: @@ -71,21 +65,11 @@ services: Start the stack: ```bash -docker compose up -d +docker compose up -d --build ``` Open `http://localhost:5000`.
-
- 🧡 Unraid - -Use the included template at `unraid-sublogue.xml`. - -- `/mnt/user/appdata/sublogue` -> `/config` -- `/mnt/user/appdata/sublogue/media` -> `/media` - -Start the container and open `http://:5000`. -
🦎 Komodo @@ -96,7 +80,9 @@ Create a new stack and paste a Komodo template like this: version: "3.9" services: sublogue: - image: ghcr.io/ponzischeme89/sublogue:latest + build: + context: . + image: sublogue:local container_name: sublogue ports: @@ -147,7 +133,7 @@ Sublogue never shifts existing subtitle timing. It only inserts metadata blocks - Localisation: Only TMDb supports proper language/region data. OMDb/TVMaze are mostly English-only. - Long plots: Big summaries go in as-is. Your TV may split them across multiple screens. - Formats: Only .srt is supported. No WebVTT, ASS/SSA, or embedded subs yet. -- Duplicate inserts: Reprocessing the same file will stack multiple plot blocks. +- Duplicate inserts: Reprocessing the same file may stack multiple plot blocks. - Offline use: Requires internet for metadata lookups — no offline mode. - File access: Read-only or locked files cannot be processed. diff --git a/docker-compose.proxy.yml b/docker-compose.proxy.yml index 648a417..e32d9b7 100644 --- a/docker-compose.proxy.yml +++ b/docker-compose.proxy.yml @@ -3,8 +3,10 @@ version: "3.9" # Sublogue behind Nginx Proxy Manager (NPM) services: sublogue: - # Production image for Sublogue - image: ponzischeme89/sublogue:latest + # Build the private image from this repository root + build: + context: . + image: sublogue:local # Explicit container name for easy discovery container_name: sublogue # Always restart unless manually stopped diff --git a/docker-compose.yml b/docker-compose.yml index 4dfb257..6c17bdd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,10 @@ version: "3.9" # Sublogue main app stack services: sublogue: - # Production image for Sublogue - image: ponzischeme89/sublogue:latest + # Build the private image from this repository root + build: + context: . + image: sublogue:local # Explicit container name for easy discovery container_name: sublogue # Always restart unless manually stopped diff --git a/frontend/src/components/AppSidebar.svelte b/frontend/src/components/AppSidebar.svelte index f0ff679..f12454a 100644 --- a/frontend/src/components/AppSidebar.svelte +++ b/frontend/src/components/AppSidebar.svelte @@ -1,11 +1,8 @@