Skip to content

fix(rewayatfans): improve novel listing and chapter extraction#2337

Merged
rajarsheechatterjee merged 3 commits into
lnreader:masterfrom
hamedhani1998:fix/rewayatfans-listing-and-chapters
Jul 22, 2026
Merged

fix(rewayatfans): improve novel listing and chapter extraction#2337
rajarsheechatterjee merged 3 commits into
lnreader:masterfrom
hamedhani1998:fix/rewayatfans-listing-and-chapters

Conversation

@hamedhani1998

Copy link
Copy Markdown
Contributor

Summary

  • Fetch novels from the actual listing page with pagination support across all 6 pages
  • Add cover images via WordPress _embed parameter
  • Fix chapter number extraction from title instead of slug
  • Add normalized title matching for better search accuracy
  • Support Arabic novel pages with HTML chapter extraction
  • Version bump to 4.0.0

Changes

  • popularNovels: Now fetches from the listing page HTML when showLatestNovels is false
  • popularNovels: When showLatestNovels is true, uses the WordPress API with _embed for cover images
  • parseNovel: Added Arabic slug detection and HTML chapter extraction
  • parseNovel: Uses prefix counting to filter relevant chapters from sidebar links
  • parseNovel: Extracts chapter numbers from titles instead of slugs
  • searchNovels: Added _embed parameter for cover images
  • getCover: New helper to extract cover images from embedded media

Testing

  • Plugin Playground runs without errors
  • Novel listing shows all novels from the listing page
  • Pagination works across multiple pages
  • Cover images display correctly
  • Chapter lists show correct numbers and sorting
  • Arabic novel pages load chapters correctly

yemen added 3 commits July 21, 2026 19:03
- Fetch novels from listing page with pagination support
- Add cover images via _embed parameter
- Fix chapter number extraction from title instead of slug
- Add normalized title matching for better search
- Support Arabic novel pages with HTML chapter extraction
- Version bump to 4.0.0
- Always fetch from listing page (قائمة-الروايات) regardless of showLatestNovels flag
- Version bump to 4.1.0
- Use WordPress API for popularNovels with _embed for cover images
- Use API-based chapter search with title number extraction
- Remove problematic listing page HTML parsing
- Cover images and chapter lists now work correctly
- Version bump to 4.2.0
@K1ngfish3r

Copy link
Copy Markdown
Collaborator

not sure which PR to comment on, im just gonna take the changes from this one

image

No cover, no metadata aside from chapters and title, is this correct?

popularnovels still seems like a mess though, not sure where you are pulling 6 pages out from... please explain why all the novels cant be fetched all at once without using teh wp-json page?

@rajarsheechatterjee rajarsheechatterjee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No structural issues were found with the current head revision.

@rajarsheechatterjee
rajarsheechatterjee merged commit be39827 into lnreader:master Jul 22, 2026
2 checks passed
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.

3 participants