Skip to content

fix(FreeWebNovel): fetch all chapter pages when paginated#2320

Open
Dakrataz wants to merge 1 commit into
lnreader:masterfrom
Dakrataz:fix/freewebnovel-chapter-pagination
Open

fix(FreeWebNovel): fetch all chapter pages when paginated#2320
Dakrataz wants to merge 1 commit into
lnreader:masterfrom
Dakrataz:fix/freewebnovel-chapter-pagination

Conversation

@Dakrataz

Copy link
Copy Markdown

Summary

FreeWebNovel paginates its chapter list (40 chapters per page). The plugin was only parsing page 1, so novels with more than 40 chapters were missing the rest.

This fix:

  • Reads the data-total-page attribute from the #indexListPage div
  • Fetches remaining pages via the site's AJAX endpoint (?ajax=chapters&page=N)
  • Combines all chapters into one list using cheerio

Checklist

  • Update version code if an existing plugin was modified
  • Test changes in Plugin Playground or the app
  • Reference related issues in the PR body (e.g. Closes #xyz)

FreeWebNovel paginates its chapter list (40 per page). The plugin was only parsing page 1, missing all subsequent chapters. This fix reads the data-total-page attribute from the #indexListPage div and fetches remaining pages via the site's AJAX endpoint (?ajax=chapters&page=N), combining all chapters into one list.

Bumps versionIncrements from 2 to 3.
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.

1 participant