Tvdb titles a record in the show's own language and keeps the English name in aliases the name search never reads, so the rule that accepts only tvdb's own spelling of a query can never resolve them: ブラッククローバー (331753) holds no alias at all, and the bare alias "One Piece" belongs to 392276, the 2023 live action, not to the 1999 record (81797) that 1,072-file pack is. Seventeen pack folders on the array — 3,507 files — are in that class. media-shows.py now reads scripts/media-shows-tvdb-ids.tsv by default: one line per pack folder, folder <TAB> tvdb id <TAB> note, every id read from tvdb's own record. The map outranks a provider id, because a box set's provider id is the server's own guess at a folder name, and it merges the release folders that are one show. Everything it touched goes to the exceptions: every folder it named, every row that matched no folder, every disagreement with a provider id, every id tvdb never answered. The file is read fail-closed — an id that is not a number, or one folder named twice, stops the plan, because a typo there renames a pack of 1,268 files to the wrong show. scripts/media-shows-tvdb.py is the sheet the map was built from, promoted out of /tmp so the next run is reproducible: it reads a plan's mkdir rows, asks tvdb about every destination folder carrying no [tvdbid-], and grades the answer EXACT / PUNCT / NEAR / NONE by how much was guessed to reach it. Acceptance is unchanged from the passes it replaces — bare-form equality plus the year-span guard — and that gate is what rejected three confident picks: Fairy Tail's 2024 sequel (410031), the 2026 Hokuto no Ken remake (465216) and Mugyutto! Black Clover (378762) offered for Black Clover. The sheet is for the operator; the map is what the planner reads, and only after he approves the rows. Tests: seven for the map's behaviour — rename to the record it names, two release folders becoming one series, precedence over a provider id and the line stating the disagreement, an id tvdb never answered, a row whose folder is gone, a malformed id refusing the run, a folder named twice refusing the run — plus one that the shipped file parses and never stops a plan.
4.1 KiB
4.1 KiB
| 1 | # The operator's tvdb id map: `folder <TAB> tvdb id <TAB> note`. | ||
|---|---|---|---|
| 2 | # | ||
| 3 | # These are the pack folders whose show tvdb's NAME SEARCH cannot reach: the | ||
| 4 | # record exists, but tvdb titles it in the show's own language and the English | ||
| 5 | # name rides in aliases the search never reads. Without a row here the folder | ||
| 6 | # keeps the release folder's words and no episode title; with one, both matchers | ||
| 7 | # read `[tvdbid-NNNN]` and the files rename to tvdb's own name and titles. | ||
| 8 | # | ||
| 9 | # Every id was read from tvdb's own record (`/series/<id>/extended`) on | ||
| 10 | # 2026-10-31, and the note states what that record says plus the neighbouring | ||
| 11 | # record a name search would have picked instead — the row is checkable without | ||
| 12 | # re-searching, because one wrong id renames a whole pack to the wrong show. The | ||
| 13 | # plan refuses a line whose id is not a number and lists every folder the map | ||
| 14 | # touched in the exceptions file. | ||
| 15 | # | ||
| 16 | # Folders the name search DOES reach (the EXACT and PUNCT classes of the proposal | ||
| 17 | # table) stay off this file on purpose: a map row would hide a live lookup behind | ||
| 18 | # a number nobody re-checks. | ||
| 19 | [Anime Time] Pokemon Complete Series (Season 01-25+Movies+Specials+Shorts+OST) [DVD+BD][1080p][HEVC 10bit x265][AAC] | 76703 | tvdb: ポケットモンスター (1997), the umbrella record for every era this pack spans; 1268 files |
| 20 | Black Clover 001 | 331753 | tvdb: ブラッククローバー (2017), which holds NO alias at all; 378762 is Mugyutto! Black Clover (2019), a different show; 108 files |
| 21 | Shin Chan - Complete Eng Dub Series 2160p Ai Upscaled -Mesc | 437356 | tvdb: Shin Chan (2006) — the English dub record this pack is; 79654 is the 1992 Japanese original; 78 files |
| 22 | Fairy Tail (2009-2014) (Seasons 1-8 + OVAs) (BD 1080p)(HEVC x265 10bit)(Dual-Audio)(Eng-Subs)-Judas[TGx] | 114801 | tvdb: フェアリーテイル (2009), alias FAIRY TAIL; 410031 is FAIRY TAIL 100 NEN QUEST (2024), the sequel; 59 files |
| 23 | (CBB) Tokyo Ghoul - The Complete Series (BD 1080p)(Dual-Audio)(HEVC-10bit-x265) | 281249 | tvdb: 東京喰種トーキョーグール (2014) — :re and √A are seasons of THIS record, confirmed by search; 58 files |
| 24 | (CBB) Tengen Toppa Gurren Lagann - The Complete Series (BD 1080p)(Dual-Audio)(HEVC-x265-10bit) | 80096 | tvdb: 天元突破グレンラガン (2007), alias Tengen Toppa Gurren Lagann; 51 files |
| 25 | Kimetsu no Yaiba | 348545 | the same record as the Anime Time pack above: two release folders, ONE show; 12 files |
| 26 | Rick and Morty The Anime | 420279 | tvdb: リック・アンド・モーティ:ジ・アニメ (2024), no English alias on the record; 10 files |
| 27 | [Anime Time] Dorohedoro (Season 1+OVA+Extra) [Dual Audio][BD][1080p][HEVC 10bit x265][AAC][Eng Sub] | 370761 | tvdb: ドロヘドロ (2020), alias Dorohedoro; 9 files |