1. TheTVDB-Provider — and what actually gets lost on 3 December
https://github.com/o51r15/TheTVDB-Provider
When Plex’s built-in TheTVDB integration goes away, most of what people
think they’re losing — titles, summaries, artwork — TMDB already covers.
The thing TMDB does not cover is episode ordering. DVD order and
absolute order exist in Plex today only through TheTVDB. If you watch
Firefly in the order it was meant to air, or a long-running anime in
absolute order, that is the feature that disappears.
So that’s what this provider is built around.
The constraint. The new API declares exactly two features — match
and metadata. There is no ordering feature, no scanner hook, and no way
to add anything to Plex’s own per-show Episode ordering dropdown; those
entries belong to Plex’s built-in agents and a provider can’t extend them.
The workaround. Ordering becomes the agent. The service registers one
provider identifier per TheTVDB season type:
| Path | Agent name in Plex | TheTVDB season type |
|---|---|---|
/official |
TheTVDB (Aired Order) | official |
/dvd |
TheTVDB (DVD Order) | dvd |
/absolute |
TheTVDB (Absolute Order) | absolute |
/alternate |
TheTVDB (Alternate Order) | alternate |
Point a library at TheTVDB (DVD Order) and every show in it is served in
DVD order. Firefly, same records, three different answers: 20 episodes
aired, 17 DVD, 15 absolute — and S01E01 is The Train Job or Serenity
depending which you picked.
The honest trade: this is library-wide, where Plex’s dropdown was
per-show. For mixed libraries there’s a per-series override —
TVDB_ORDER_OVERRIDES=78874:dvd,81797:absolute — so the exceptions don’t
force you into a second library. So you set your base library to TVDB official and then manage just the shows needing override by specifying them in them in the compose.
All seven of TheTVDB’s season types are supported (official, dvd,
absolute, alternate, regional, altdvd, alttwo); four are
registered by default, the list is an env var, and /orders reports what
TheTVDB actually offers rather than a hardcoded table.
Other things worth knowing:
- Empty orders fall back. The 2023 One Piece has 35 aired episodes
and zero in dvd or absolute. A DVD-order library serves it in aired order
and logs that it did, instead of handing Plex an empty season. - Caching is the point, not an afterthought. Tiered TTLs, negative
caching, and single-flight coalescing. Measured against a live scan:
36 Plex requests cost 4 upstream calls, 88% hit rate./health
reports the counters so you can check rather than trust. /selftestwalks login → season types → search → series → episodes →
mapping and names the step that broke.- Language-ranked artwork (textless preferred over wrong-language), id
hints via{tvdb-},{imdb-}and{tmdb-}, 27 tests.
You need your own TheTVDB v4 API key — keys are per-project now, and
depending on which kind you get you may also need your subscriber PIN. The
provider tries the credentials at startup and tells you which case you’re
in rather than failing mid-scan.
ghcr.io/o51r15/tvdb-provider:1.0.0
[mod-edit: removed distracting formatting tags from when this was copy & pasted]