Skip to content

fix(lightnovelwp): support article.epcontent chapters and fix search URL (#2483) - #2632

Merged
rajarsheechatterjee merged 1 commit into
lnreader:masterfrom
52191314:fix/tcsega-empty-chapters
Oct 4, 2026
Merged

rajarsheechatterjee merged 1 commit into
lnreader:masterfrom
52191314:fix/tcsega-empty-chapters

Conversation

@52191314

@52191314 52191314 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2483

  • Add article.epcontent selector fallback in lightnovelwp template so chapters rendered in <article> tags load properly (fixes empty chapters on TC & Sega)
  • Fix search URL by ensuring a trailing slash before ?s= query parameter to avoid unnecessary redirects
  • Bump lightnovelwp template version to 1.1.11 and TCSega to 1.1.12

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)
  • Commit messages follow type(scope): description (e.g. feat(<generator>): add new source)

@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 4/5

[Medium risk] Updates chapter parsing logic for a light novel plugin.

The PR appears safe to merge, with a non-blocking risk to images opened through older TCSega chapter paths.

Findings

  1. P2 Older chapter images may break ▶

Summary

This PR broadens LightNovelWP’s chapter-content match and updates TC & Sega’s source settings.

  • Chapter content can now be found on elements other than div.
  • TC & Sega gets a trailing-slash address and a version increment.
  • Trailing spaces are removed from two source entries.

Reviews (1) · Last reviewed commit: "fix(lightnovelwp): parse chapter content..."

{
"id": "TCSega",
"sourceSite": "https://teamchmantranslations.com",
"sourceSite": "https://teamchmantranslations.com/",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Older chapter images may break

The new trailing slash in TCSega’s sourceSite can leave two slashes when it joins an older chapter path. safeFecth removes the extra slash when fetching the chapter, but pageUrl keeps it when building relative image links. If the image host treats those paths differently, readers see broken images. Build pageUrl from the same cleaned URL used for the fetch.

@52191314 52191314 changed the title fix(lightnovelwp): parse chapter content from article.epcontent and f… fix(lightnovelwp): support article.epcontent chapters and fix search URL (#2483) Oct 2, 2026
@rajarsheechatterjee
rajarsheechatterjee merged commit 455c052 into lnreader:master Oct 4, 2026
4 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.

[TCSega] Empty chapter: SSS-Class Suicide Hunter — SSH – Capítulo 1

2 participants