Skip to content

feat(spanish): add Novelas Topcur source - #2888

Merged
rajarsheechatterjee merged 6 commits into
lnreader:masterfrom
RibatTRW:fm/lnreader-queue-26
Nov 12, 2026
Merged

rajarsheechatterjee merged 6 commits into
lnreader:masterfrom
RibatTRW:fm/lnreader-queue-26

Conversation

@RibatTRW

@RibatTRW RibatTRW commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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.

Popular listing
Novel details
Chapter list
Chapter text
Search

Testing

  • npm run build:full exits 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.
  • parseNovel was also run over all 127 catalogue pages and parseChapter over first/middle/last chapters of 16 novels.
  • Pages, novel details and chapters are read through Blogger's public JSON feed (falling back to the HTML page), because the site rate-limited the automated live check when it used HTML.
  • Not tested in the LNReader app.

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.

@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[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

  1. P2 Story lines can disappear ▶

Summary

Adds a Spanish source for Novelas Topcur, with catalogue search, novel details, chapters, and an icon.

  • Readers can browse and search Novelas Topcur's catalogue.
  • Series pages show novel details and chapter lists.
  • Chapters open with navigation and promotion clutter removed.

Reviews (1) · Last reviewed commit: "no-mistakes(review): Limit Topcur promo ..." · Reviewed by Greptile

Comment thread plugins/spanish/novelastopcur.ts Resolved
…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
rajarsheechatterjee merged commit 69a9617 into lnreader:master Nov 12, 2026
3 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Novelas Topcur

2 participants