Repository navigation
feat(english): add Kay's Translations source - #2867
Conversation
Adds a standalone plugin for kaystls.site (Kay's Translations): browse via the site's own AJAX listing (popular/latest, status and sort filters), search, novel details with the full free chapter list (early-access chapters are skipped), and chapter text.
[Low impact] The changes affect readers who choose this one source. The PR appears safe to merge, with a non-blocking improvement to how Findings
SummaryAdds Kay's Translations as a standalone English source.
No live requests or runtime checks were performed during this review. Reviews (1) · Last reviewed commit: "feat(english): add Kay's Translations so..." · Reviewed by Greptile |
| .filter(path => path), | ||
| ); | ||
| const chapters: Plugin.ChapterItem[] = []; | ||
| (toc?.chapters || []).forEach(item => { |
There was a problem hiding this comment.
Failed chapter lists look empty
parseNovel turns a failed readToc call into a successful novel with no chapters. If the server returns an HTTP-success page without usable KaySeriesTOCData, readers see an empty chapter list instead of an error. Check that the TOC was parsed before building the list, while still allowing a valid TOC with zero chapters.
Knowledge Base Used: Plugin authoring contract
There was a problem hiding this comment.
Fixed in 35eb39d: parseNovel now throws "no chapter list found" when KaySeriesTOCData is missing or has no chapters array, while a valid list that happens to be empty is still returned as such. The live check was re-run afterwards and all four steps pass.
Summary
Adds a standalone English source for Kay's Translations (https://kaystls.site/), a fan-translation site for Japanese isekai light novels. The site is a custom WordPress build, so the plugin reads the site's own pages and AJAX actions:
Files:
plugins/english/kaystranslations.ts(idkaystranslations, v1.0.0) and a 96x96 icon atpublic/static/src/en/kaystranslations/icon.png.Fixes #263
Screenshots
These come from the repository's plugin playground running this source against the live site, not from the LNReader app.
Popular listing:
Latest listing:
Novel details and chapter list:
Chapter text:
Search:
Testing
npm run check:plugin -- plugins/english/kaystranslations.ts: popularNovels, searchNovels, parseNovel and parseChapter all PASS (20 novels; 1 search result; 676 chapters; 6386 characters of chapter text).npm run build:fullexits 0 and the plugin appears in the generated manifest.v2c10), the Latest mode with a status filter, an empty page past the end of the list, a too-short search term, and an early-access chapter (the plugin throws a clear "no readable chapter text" error).parseNovelnow throws a clear error in that case, and the live check was re-run (all four steps PASS).This plugin was written and tested by an AI coding agent (Claude) and reviewed only by an automated pipeline. No human has reviewed it yet.