Skip to content

feat(multisrc/novelfire): fix Novel Phoenix filters, add tags, content rating and last updated - #2942

Open
JKJapona wants to merge 2 commits into
lnreader:masterfrom
JKJapona:feat/novelphoenix-advanced-search
Open

JKJapona wants to merge 2 commits into
lnreader:masterfrom
JKJapona:feat/novelphoenix-advanced-search

Conversation

@JKJapona

@JKJapona JKJapona commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Rebased onto master now that #2940 has merged; the diff is just the three Novel Phoenix files.

Checklist

  • Update version code if an existing plugin was modified
  • Test changes in Plugin Playground or the app
  • Commit messages follow type(scope): description

What was wrong

Novel Phoenix rewrote its advanced search. The plugin kept sending the old parameter names, and the site ignored them without any error — so the filters returned an unfiltered list.

Filter Plugin sent Result Now sends
Chapters 1–49 totalchapter=1,49 ignored chapter_min=1&chapter_max=49
Korean country_id[]=2 ignored country_id=2
Language list — Korean missing option added

What changed

  • Correct parameters for Novel Phoenix (gated by options.advSearchV2).
  • Language is a single-choice picker with an All option. The site's control is a <select>, so the old checkbox list silently dropped every choice after the first.
  • New filters: tags (multi-select with autocomplete from /ajax/getTags, cached for 7 days), content rating, last updated.
  • Tag names are validated before the list is cached, so a temporary error from the source can't leave every tag unusable for a week.
  • Guard: if the site ever ignores the chapter filter again, the plugin raises an error instead of quietly returning the wrong list.

Evidence

  • Chapters 1–49 → short novels (Invisible Dragon, Three Days of Happiness).
  • Korean → A Regressor's Tale, Omniscient Reader's Viewpoint.
  • Tags Isekai + Weak to Strong with Korean → country_id=2&tags[]=945&tags[]=16.
  • Unknown tag → explicit error; autocomplete returns Isekai.
  • Simulated drift (source ignoring the filter) → Invalid response from source.

Scope

Novel Phoenix only. Novel Fire is untouched and keeps country_id[] + totalchapter.
Version: Novel Phoenix 1.1.1.

Tags use the MultiText filter type, added to the app in lnreader/lnreader#2137. Older app builds simply don't show that field; everything else works unchanged.

@JKJapona
JKJapona marked this pull request as draft November 26, 2026 19:34
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; all four previous findings are addressed.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; all four previous findings are addressed.

Summary

Updates Novel Phoenix’s advanced search while keeping Novel Fire’s existing query format.

  • Novel Phoenix searches use the site's current filter fields.
  • Novel Phoenix readers can choose tags by name.

Reviews (2) · Last reviewed commit: "fix(multisrc/novelfire): send one langua..." · Reviewed by Greptile

Comment thread plugins/multisrc/novelfire/template.ts Resolved
Comment thread plugins/multisrc/novelfire/template.ts Resolved
Comment thread plugins/multisrc/novelfire/template.ts Resolved
@JKJapona
JKJapona force-pushed the feat/novelphoenix-advanced-search branch from 6aef570 to 49c6523 Compare November 26, 2026 19:54
@JKJapona

Copy link
Copy Markdown
Contributor Author

All four findings are addressed in 49c6523:

  • Language is now a single-choice picker with an All option. The site's control is a select, so the checkbox list silently dropped every choice after the first; country_id is only sent when one is chosen.
  • Tags use MultiText, so each tag is a chip and suggestions work for the second and later tags. A picked tag shows its name rather than its id.
  • The tag list is validated before it is cached, so an error body can no longer be stored as an empty list for a week.

Verified: Isekai + Weak to Strong with Korean sends country_id=2&tags[]=945&tags[]=16; unknown tags still raise a clear error.

…t rating and last updated

Novel Phoenix only. Tag names autocomplete from the source's tag list. Novel Fire keeps its legacy parameters.
Novel Phoenix's language control is a single-value select, so the checkbox list silently sent only its first entry. It is now a picker with an All option, and country_id is only sent when one is chosen.

The tags field was free text with autocomplete: suggestions queried the whole field, so a second tag could never be suggested, and a suggestion replaced everything already typed. It is now a multi-text field, which also means a picked tag shows its name instead of its id.

Tag lists are validated before being cached; an error body used to be stored as an empty list for a week, making every tag name unresolvable.
@JKJapona
JKJapona force-pushed the feat/novelphoenix-advanced-search branch from 49c6523 to 6454ac9 Compare December 1, 2026 14:03
@JKJapona
JKJapona marked this pull request as ready for review December 1, 2026 14:04

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.

1 participant