tools/lgdl.py: precheck <f_id> <edition_id> [pages] — mislinked-file gate (reverse-map editions + locator batch path + size sanity; exit 0/1/2); dl with 4th arg auto-prechecks and aborts on RED. Tested: caught 3 bad files (Одержимый магией / Laso / Captain Action comic); OK path verified
This commit is contained in:
parent
b43e8f763c
commit
67fac97559
2 changed files with 95 additions and 2 deletions
|
|
@ -469,6 +469,11 @@ sections/0N-<name>/ # one .md per BOOK (chapter-level list items are merged int
|
|||
8. **Content-verify gate (2026-09-22, after the sec05 mislinked batch)**: every downloaded file
|
||||
gets a two-second check — magic bytes + `pdfinfo` pages + first-page/head text containing the
|
||||
expected RU title/author. A file that fails is discarded and re-sourced (usually flib).
|
||||
**Pre-download gate: `tools/lgdl.py precheck <f_id> <edition_id> [pages]`** (exit 0 OK /
|
||||
1 SUSPECT / 2 BAD) — checks the file record's `editions` reverse-map (must contain the target
|
||||
edition), `locator` batch path, size sanity; `dl <f_id> <dir> <name> <edition_id>` runs it
|
||||
automatically and aborts on BAD. Mislink = skip that f_id → next file of the same edition →
|
||||
next candidate edition → flib; log rejected f_ids in MANIFEST notes.
|
||||
|
||||
## Catalog caching convention
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue