Skip to content

feat(madara): add anslid source - #2679

Open
RibatTRW wants to merge 1 commit into
lnreader:masterfrom
RibatTRW:fm/lnreader-anslid-185
Open

RibatTRW wants to merge 1 commit into
lnreader:masterfrom
RibatTRW:fm/lnreader-anslid-185

Conversation

@RibatTRW

@RibatTRW RibatTRW commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #185

Summary

Adds anslid.com as a Spanish source through the existing madara generator. This is a sources.json entry plus a 96x96 icon, with no standalone plugin and no changes to shared generator code.

  • plugins/multisrc/madara/sources.json: new anslid entry (lang: Spanish, useNewChapterEndpoint: true). No selector or URL overrides were needed: novels live at /novela/<slug>/, chapters at /novela/<slug>/capitulo-<n>/, and the chapter list loads from the Madara AJAX endpoint.
  • public/static/multisrc/madara/anslid/icon.png: 96x96 icon converted from the site's own icon.

Testing

Evidence run from this branch at 40ec8db:

  • npm ci and npm run build:full: exit 0.
  • npm run check:plugin -- "plugins/spanish/Anslid[madara].ts": all four steps PASS (popularNovels 16 items, searchNovels 1 result, parseNovel 90 chapters, parseChapter about 10.9k characters of Spanish text).
  • Playground walkthrough, headless Chromium, against the live site: popular listing, novel detail with its 90-chapter list, chapter 1 text, and search for "Zenith". Screenshots are listed below.

What the screenshots are: the plugin playground (npm run dev:start) in this worktree, not the LNReader app. The Android toolchain is not installed here, so there is no in-app test.

How the playground was reached: the playground hardcodes http://localhost:3000 for its CORS proxy, and port 3000 was held by another worktree's server. I ran this worktree's playground on port 3001 and used a Chrome DevTools Fetch rule in my own headless browser to answer the localhost:3000 requests from the 3001 server. The app, proxy and plugin code all come from this branch. Nothing on port 3000 was touched.

Lint and format: npm run lint and npm run format:check fail only on files this PR does not touch (plugins/multisrc/madara/template.ts, plugins/multisrc/readnovelfull/template.ts, plugins/english/chikari.ts, and the pre-existing failures named in the brief). sources.json passes Prettier.

Known limitation

  • Release dates show "Invalid Date" in the playground. anslid.com publishes chapter dates in Spanish (for example agosto 14, 2026). The shared madara date parser does not understand Spanish month names, so the Release Time column and the metadata "First Chapter" / "Last Updated" fields show "Invalid Date". This is a pre-existing limitation of the shared template affecting any madara source with non-English dates. It was left unchanged in this PR on purpose, because it is out of scope for a source addition and would change every madara source. A follow-up could add a Spanish month map to the shared parser.

Screenshots

Captured in the plugin playground (not the LNReader app). Images are GitHub user attachments.

Anslid selected in the playground, popular novel listing

Parse Novel view with metadata for Mi Novia ha Regresado Como una Dragona Novela

Chapter list with 90 entries

Parse Chapter view with Capítulo 1 text

Search for "Zenith" returns the expected novel

AI authorship

This change was prepared by an AI coding agent (Claude) working on a task branch, then run through the no-mistakes pipeline. Reviewers should weight accordingly.

Add anslid.com (Spanish) to the madara generator's sources.json. The site
is a wp-manga Madara install: novels live under /novela/<slug>/, chapters
under /novela/<slug>/capitulo-<n>/, and the chapter list is loaded from the
AJAX endpoint, so useNewChapterEndpoint is enabled. No selector or URL
overrides were needed.
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge, with no new actionable issues found.

Summary

Adds Anslid as a Spanish Madara source.

  • Readers can use Anslid as a Spanish novel source.

Reviews (2) · Last reviewed commit: "feat(madara): add anslid source" · Reviewed by Greptile

@RibatTRW
RibatTRW marked this pull request as draft October 15, 2026 12:08
@RibatTRW
RibatTRW marked this pull request as ready for review October 15, 2026 13:11

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source in spanish

1 participant