Repository navigation
feat(spanish): add Novelas Topcur source - #2888
Merged
rajarsheechatterjee merged 6 commits intoNov 12, 2026
Merged
Conversation
[Medium impact] The PR adds a new source for readers using the Spanish novel catalogue. The PR appears safe to merge, with a non-blocking concern about deleting short story lines that resemble navigation. Findings
SummaryAdds a Spanish source for Novelas Topcur, with catalogue search, novel details, chapters, and an icon.
Reviews (1) · Last reviewed commit: "no-mistakes(review): Limit Topcur promo ..." · Reviewed by Greptile |
…spot.com on the single HTML request `popularNovels` makes. I changed `plugins/spanish/novelastopcur.ts` to read pages and posts through Blogger's JSON feed instead, as the driver instructions asked. A new `document(path)` helper fetches the entry from `/feeds/pages/default` for `/p/...` paths and `/feeds/posts/default` otherwise, using the `path` parameter. It rebuilds `<h3 class="post-title">` with the escaped title plus `<div class="post-body">` with the entry content, so the existing selectors work unchanged. If the feed request fails, throws, or has no entry, it falls back once to the old HTML fetch. `catalogue`, `parseNovel` and `parseChapter` now call it. Local checks: prettier is unchanged, eslint is clean, and `npm run check:plugin -- plugins/spanish/novelastopcur.ts` passes all four steps: - `popularNovels`: 127 novels. - `searchNovels`: 1 result. - `parseNovel`: 738 chapters. The driver note expected 733; the site has presumably added chapters since. - `parseChapter`: 22614 characters. I did not run `npm run build:full`. The local check ran against the live site and does not show whether the feed requests avoid the 429 on the CI runner's IP, so that needs a CI re-run. The plugin version stays at 1.0.0 because the plugin is still new in this PR
rajarsheechatterjee
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a standalone Spanish source for Novelas Topcur, a Blogger-hosted site of Spanish-translated web novels (
https://animeshoy12.blogspot.com).popularNovels: reads the site's catalogue page (/p/lista-de-novelas.html, 127 entries with covers, single page).searchNovels: the blog's own search only returns individual chapter posts, so titles are matched against the catalogue.parseNovel: cover, synopsis, author/status/genres when the page gives them, and the full chapter list from the novel page (for example 483 chapters for Nano Machine, 733 for ATG, 1,442 for El Regreso de la Secta del Monte Hua).parseChapter: chapter text, with navigation links, the author's donation/sharing boilerplate and runs of blank spacing removed.Known limitation: the catalogue cannot tell which novels are actually hosted on the blog. Of the 127 entries, 73 have chapters on the blog (some only the first few); the other 54 only link to chapters on other sites (mostly anslid.com). Opening one of those fails with a message naming where its chapters are; partially hosted novels get a note appended to the synopsis.
Fixes #400
Screenshots
Captured headless from the repository's plugin playground (not the LNReader app), with this source's live results on screen.
Testing
npm run build:fullexits 0; eslint and prettier are clean on the plugin.npm run check:plugin -- plugins/spanish/novelastopcur.ts: popularNovels, searchNovels, parseNovel and parseChapter all PASS against the live site.parseNovelwas also run over all 127 catalogue pages andparseChapterover first/middle/last chapters of 16 novels.This change was written and tested by an AI coding agent (Claude) and reviewed by an automated pipeline only. No human has reviewed it yet.