lightnovelworld Series identity is read from the chapter page (#80) #92
Reference in New Issue
Block a user
Delete Branch "feat/lnw-series-identity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements spec #80 / ADR-0008 — Gitea issues #86, #87, #88, #89, #90, all closed.
A Reader bookmarks a novel on lightnovelworld and it never shows a New Chapter, because the Series identity was derived from the chapter address instead of read from the page. One Series can publish under several Chapter Slugs, so the derived key points at a slug that 404s.
seriesUrl/seriesIdfrom the path. It reads the page's own pointer (a[aria-label='All Chapter']), falling back to the microdata breadcrumb's second crumb, and carrieschapterSlugon the page object, stored nowhere.wpd-threadscomment thread, the one region a visitor can write to. Marker absent means skip and log with the body length, never scan whole. Corrects themaxBodyBytesheadroom comment to the measured 3.5x.SMOKE_LNW_SERIES_URL) proving the marker still occurs exactly once and still follows the last chapter anchor, asserted against the production symbols themselves.Verified on the merged branch:
go test ./...green,gofmt -l internal/latest/silent, both userscriptsnode --checkclean, 35/35 + 29/29 logic tests. Live canary green (marker once at byte 612,182 of 651,795). #90 verified on device with Playwright.Open follow-up: #91 — the userscript's client-side latest-chapter scan is still scoped to the derived slug.