Skip to content

fix(english): fix AO3 works not loading (#2622) - #2625

Merged
rajarsheechatterjee merged 4 commits into
lnreader:masterfrom
52191314:fix/archiveofourown
Oct 4, 2026
Merged

rajarsheechatterjee merged 4 commits into
lnreader:masterfrom
52191314:fix/archiveofourown

Conversation

@52191314

@52191314 52191314 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Closes #2622

  • Bypass adult content caution interstitials by passing view_adult=true and setting the cookie
  • Parse novel chapter lists directly from /navigate (ol.index li) for clean chronological ordering
  • Fix single-chapter work chapter URLs pointing to non-existent /chapters/<timestamp> endpoints
  • Bump version to 1.0.5

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)

… work paths

- Pass view_adult=true query parameter and Cookie header on novel, navigate, and chapter requests so mature/explicit works and works with warnings do not hit the caution interstitial
- Parse chapter items directly from the work navigation index (ol.index li)
- Fall back to the novel path itself for single-chapter works instead of extracting invalid timestamps from download links
- Bump plugin version to 1.0.5

Closes lnreader#2622
@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 4/5

[Medium risk] Fixes content loading for an adult-content plugin.

This PR should wait until work URLs with query strings or fragments keep their full chapter list.

Findings

  1. P1 Work URLs lose chapters ▶

Summary

The AO3 plugin now requests work and chapter pages with adult access and builds chapter entries from the work’s navigation page. Single-chapter works use the work URL, and chapter text can be read from either of AO3’s chapter layouts.

  • Adds adult-access settings to work and chapter requests.
  • Reads chapter links and dates from the ordered navigation list, with a single-work fallback.
  • Updates the plugin version to 1.0.5 and supports both chapter-content layouts.

Reviews (1) · Last reviewed commit: "fix(english/ao3): bypass adult warning b..."

Comment thread plugins/english/ao3.ts
Comment on lines +120 to +123
const navHttpUrl = new URL(
novelUrl.replace(/\/$/, '') + '/navigate',
this.site,
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Work URLs lose chapters

When someone enters a work URL with a query string or fragment, parseNovel adds /navigate after that suffix instead of to the work path. It fetches the work page rather than the chapter list, then shows a multi-chapter work as one chapter. Build the navigation URL from the parsed URL’s path.

@rajarsheechatterjee
rajarsheechatterjee merged commit 3583884 into lnreader:master Oct 4, 2026
3 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.

Some Archive of our own novels not loading

2 participants