Skip to content

fix(english/novelupdates): restore parseNovel when mypostid is missing - #2831

Open
Gourab0002 wants to merge 1 commit into
lnreader:masterfrom
Gourab0002:fix/english-novelupdates-parse-novel
Open

Gourab0002 wants to merge 1 commit into
lnreader:masterfrom
Gourab0002:fix/english-novelupdates-parse-novel

Conversation

@Gourab0002

Copy link
Copy Markdown
Contributor

Summary

Fixes #2820.

Novel Updates series pages no longer include the hidden input#mypostid field that parseNovel used for the chapter AJAX call. Popular/search still worked, but opening a novel crashed with "Unable to load novel". Library entries were fine because they already had a cached chapter list.

This falls back to the WordPress body.postid-N class (and ?sid= links) for the series id, keeps using nd_getchapters, and skips chapter rows that have no href.

Plugin version: 0.9.9 → 0.9.10.

Test plan

  • npx tsc --project tsconfig.production.json --noEmit
  • npx eslint plugins/english/novelupdates.ts
  • npm run build:full
  • Local parse against live series HTML (via Firecrawl): metadata + id 17042 recovered without #mypostid
  • npm run check:plugin -- plugins/english/novelupdates.ts — INCONCLUSIVE here (HTTP 403 Cloudflare from this host). Please re-run from CI / a non-blocked network.

Series pages no longer include input#mypostid, so opening a novel threw
and showed "Unable to load novel". Fall back to body.postid-N / sid=
links for the chapter AJAX id, and skip chapter rows without an href.

Co-Authored-By: Grok Bot (AI agent)
@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable regression was found.

Summary

Updates Novel Updates to 0.9.10 and restores series ID lookup when input#mypostid is missing.

  • Novel Updates loads series pages when the hidden id field is missing.
  • Novel Updates builds chapter paths from links that are present.

No actionable issues were found.

Reviews (1) · Last reviewed commit: "fix(english/novelupdates): restore parse..." · Reviewed by Greptile

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.

Please fix NovelUpdates

1 participant