TV-Guide
TVHeadend records reliably, but its EPG interface is built for configuration rather than discovery. TV-Guide is a small web app on top of it that makes the programme guide browsable, finds 80s and 90s films and series, keeps saved searches, and triggers recordings without leaving the page.
What it does
- Browse the EPG, with "running now", "tonight" and filters for type, decade, genre, status and upcoming airings.
- Keep fiction visible, films and series stay in the main views while non-fiction formats are hidden by default. A manual mark can pull an automatically classified format back into the film or series views.
- Work details, each work shows the EPG title and the IMDb title, type, runtime, rating, genres, cast, crew and episodes where available.
- Person pages, cast and crew names open an internal page with upcoming and past airings, plus a link to the IMDb profile.
Data pipeline
- EPG import, an hourly, change-aware XMLTV import from TVHeadend keeps
epg.dbcurrent without rewriting unchanged data. - IMDb build, after the first EPG change of the day, the IMDb datasets are rebuilt and shows are matched against them. Cast, crew and episodes are only built for works that are actually matched, which keeps the database small.
- Review queue, uncertain matches go into a review queue instead of being accepted silently. A wrong match can be removed and put back into review with fresh suggestions.
- TMDB posters, posters and metadata are fetched from TMDB and cached locally in
app.dbanddata/posters/. The page never hotlinks image URLs, and cached data is refreshed at most every six months. - Separate state,
epg.dbandimdb.dbare reproducible inputs. User overrides, saved searches, hits and the poster cache live inapp.db.
Saved searches and email
- Filters are validated and stored as saved searches, with hit tracking for each new match.
- After every refresh, TV-Guide sends one digest email for all open hits of searches with notifications enabled.
- Failed sends are retried on the next run. A dry run writes the email to a local outbox, and a test mode sends a single test message.
Recordings
- Series, "record series" creates a TVHeadend Autorec for the EPG title on the selected channel.
- Films, "record film" creates a single recording for exactly that airing.
- Safety checks, TV-Guide resolves the matching EPG event, reuses an existing series link when available, falls back to an exact title match, and detects existing timers and recordings before creating anything.
- If the event is no longer in the EPG, the page shows an error instead of recording the wrong programme. The TVHeadend account needs DVR and recorder permissions.
Deployment
The app runs as a Docker container from a GHCR image on a homelab Docker host, with TVHeadend reachable on docker-host-nas. Configuration, the ignore list and data/ are mounted as volumes. The IMDb raw datasets use a separate mount so they stay out of the regular data backup. Only app.db is non-reproducible state and needs a backup; the EPG, IMDb and raw datasets can be rebuilt.
Development runs on the Xubuntu VM without a container, using the local virtualenv and test suite. See the TV-Guide repository for configuration, the scheduler and the compose example, and Docker container strategy for the surrounding media stack.
TV-Guide is an internal tool. Channel lists, credentials and the actual recording library are not published here.