First-party Silo marker provider for TheIntroDB.
The plugin implements marker_provider.v1 against TheIntroDB API v4 and can
fetch or submit intro, credits, recap, and preview markers for movies
and TV episodes, including specials (season 0).
Each request addresses TheIntroDB by one ID, because TheIntroDB reads season and episode numbers in the space of the ID it receives:
- A movie uses its TVDB ID, then TMDB, then IMDb.
- An episode uses the series ID of the provider whose numbering it follows,
which Silo reports as
episode_numbering: the first TVDB or TMDB provider in the library's episode chain that supplied the episode. A TVDB-numbered episode also sends its TVDB episode ID astvdb_episode_id. - On a host that predates
episode_numbering, an episode Silo matched on TVDB alone is treated as TVDB-numbered, and any other episode uses the series' TMDB ID so TheIntroDB converts TMDB numbering.
Malformed IDs, seasons above 1000, and episodes above 10000 are not looked up. Lookups ask for TheIntroDB's per-segment confidence and submission count. A segment without a confidence (or with one outside 0-1) is reported with confidence 0, so it ranks below any rated marker and Silo uses it only when no other provider has a marker for that section. A fetch confidence floor above 0 on this provider drops such segments entirely. When TheIntroDB answers with a release more than five minutes longer or shorter than the file, its credits and previews are dropped, since they would land in the wrong place; intros and recaps are kept.
Every range TheIntroDB serves for a kind is returned, including the two intros some episodes have and the separate credits ranges around a scene to keep. The plugin skips any range it can't place: an intro or recap without an end, credits or a preview without a start, a range that ends before it starts or past the end of the file (credits and previews may overrun it by up to five minutes, and then end with it), and a preview that starts at 0:00, since a next-episode preview never opens a file. Credits that start at 0:00, usually an opening credit sequence filed under the wrong kind, are returned, and Silo drops them because they start before the file's end-credits window.
TheIntroDB answers "this item has no segment of that kind" with a single entry
whose bounds are both absent or zero, and that entry is never returned as a
range. For recaps and previews, when Silo asks for such answers
(accepts_absent), the plugin reports one as an absent marker with the vote's
confidence and submission count; a host that predates the flag reads a marker
without bounds as covering the whole file, so it is told nothing. Like a range,
a preview answer from a release more than five minutes off the file is dropped,
and a fetch confidence floor on this provider drops answers rated below it.
Intro and credits answers are not reported yet. Silo ranks a plugin's absent
answer above its own intro and credits detection, so a single vote would replace
a marker Silo detected itself, and Silo has no way to outvote it later.
Submissions that TheIntroDB cannot accept or could read as a "no segment" vote
(credits or a preview starting at 0, an intro or recap ending at 0, an empty
range) are refused locally, and Silo records them as permanent refusals.
TheIntroDB's submission guidelines file an opening credit sequence under
intro, not credits. After TheIntroDB rejects the API key, submissions stop
for an hour or until the key changes or validates.
Submissions tell TheIntroDB's moderators how Silo produced each marker.
TheIntroDB stores a submission's User-Agent and shows it to moderators, so the
plugin adds the detection algorithm the host reports to that header's comment:
detection=chromaprint:v5 for a marker this server detected,
detection=manual:v1 for one a person placed. The header plays no part in
whether TheIntroDB accepts a submission. Lookups, account statistics, and
submissions from a host that names no algorithm send the plugin's plain
identity.
Lookup responses are cached for up to 24 hours in a bounded cache; changing
credentials or submitting a marker clears that cache. The
lookup rate follows the ceiling TheIntroDB reports in X-RateLimit-Limit.
Quota responses include the upstream reset delay so Silo can schedule the next
lookup. Reaching TheIntroDB's daily limit for a single title fails only that
lookup instead of pausing the provider.
The account global config accepts an optional api_key string from a
theintrodb.org account. Fetches work without a key; a key raises the lookup
budget, and submissions and account statistics require one.
GOWORK=off go test ./...
make buildReleases are signed with GitHub artifact attestations. CONTRIBUTING.md describes how maintainers cut a release and how to verify a downloaded binary.
Read CONTRIBUTING.md before opening a pull request. Changes to
the marker contract must be coordinated with silo-plugin-sdk and
silo-server.
silo-plugin-markers-theintrodb is licensed under AGPL-3.0-only. See
LICENSE.