Skip to content

feat(en): add Wuxia Dreams plugin#2162

Closed
7ui77 wants to merge 3 commits into
lnreader:masterfrom
7ui77:feat/wuxiadreams-upstream
Closed

feat(en): add Wuxia Dreams plugin#2162
7ui77 wants to merge 3 commits into
lnreader:masterfrom
7ui77:feat/wuxiadreams-upstream

Conversation

@7ui77
Copy link
Copy Markdown
Contributor

@7ui77 7ui77 commented May 2, 2026

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)

Description

This PR adds a new plugin for **Wuxia Dreams** (wuxiadreams.com), apopular English novel site.
### Features:
- **Popular & Latest Updates:** Scrapes directly from the homepage sections for maximum relevance.
- **Comprehensive Metadata:** Extracts title, author, genres, status, synopsis, and high-res cover images.
- **Multi-page Chapter Lists:** Robustly handles novels with large chapter counts by paginating through the site's chapter index.
 - **Clean Content:** Extracts chapter text from the primary content container while stripping ads and tracking scripts.
- **Search:** Full support for keyword search with pagination.
- **Filters:** Includes a Genre picker.

### Verified Selectors:
 - **Novel List:** `a[href^="/novel/"]`
 - **Chapter Content:** `article.chapter-content-container`
 - **Author/Status:** Optimized attribute-based matching.

Note:

The plugin icon has been added to public/static/src/en/wuxiadreams/icon.png.

Close #2159

Copy link
Copy Markdown
Collaborator

@K1ngfish3r K1ngfish3r left a comment

Choose a reason for hiding this comment

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

  1. dont use homepage for popularNovels()
  2. add more filters (eg: ranking)
  3. since you are not using homepage, can move cheerio code to helper
  4. some novels dont have genres, use tags for genres instead
  5. since only two status types, can ternary them //optional
  6. use POST request for chapter fetch instead
  7. no scripts or style tags inside chapterText

Comment thread plugins/english/wuxiadreams.ts
Comment thread plugins/english/wuxiadreams.ts Outdated
Comment thread plugins/english/wuxiadreams.ts Outdated
Comment thread plugins/english/wuxiadreams.ts
Comment thread plugins/english/wuxiadreams.ts
Comment thread plugins/english/wuxiadreams.ts Outdated
Comment on lines +153 to +157
if (p > 1) {
const pageUrl = `${url}?page=${p}`;
const pageBody = await fetchApi(pageUrl).then(r => r.text());
pageCheerio = parseHTML(pageBody);
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. use POST request for chapter fetch instead

Comment thread plugins/english/wuxiadreams.ts
@7ui77 7ui77 force-pushed the feat/wuxiadreams-upstream branch 2 times, most recently from 772d251 to 4a6895b Compare May 2, 2026 18:19
@7ui77 7ui77 force-pushed the feat/wuxiadreams-upstream branch from 4a6895b to 77a3a63 Compare May 2, 2026 18:22
@7ui77 7ui77 force-pushed the feat/wuxiadreams-upstream branch from 41888bd to 5b7d4e8 Compare May 3, 2026 03:17
@7ui77 7ui77 closed this May 4, 2026
@7ui77 7ui77 deleted the feat/wuxiadreams-upstream branch May 5, 2026 04:54
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.

Online novel reading plugin request

2 participants