fix(english): fix AO3 works not loading (#2622) - #2625
Conversation
… 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
|
| const navHttpUrl = new URL( | ||
| novelUrl.replace(/\/$/, '') + '/navigate', | ||
| this.site, | ||
| ); |
There was a problem hiding this comment.
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.
Closes #2622
view_adult=trueand setting the cookie/navigate(ol.index li) for clean chronological ordering/chapters/<timestamp>endpointsChecklist