feat(english): add DaoTekno source plugin for daotekno.com - #2547
Merged
rajarsheechatterjee merged 2 commits intoSep 24, 2026
Merged
Conversation
Add a standalone LNReader source for daotekno.com (issue lnreader#2543), a custom PHP reader serving the DaoTranslate.com catalog. Parses the paginated catalog listing, series chapter lists (merging the site's 200-chapter pages, newest-first, reversed to ascending), chapter bodies from #novel-content, and server-side search. Sends browser-like headers with a mobile Chrome User-Agent (the site gates chapter pages on UA) and throws with the HTTP status on refused responses so runner-side blocks report INCONCLUSIVE per docs/testing.md. Authored by an AI agent (pi) as an automated worker task. Co-Authored-By: AI agent pi <noreply@openai.com>
Add the sec-ch-ua trio and Sec-Fetch-Site/Dest fields a Chrome fetch() sends to this site, closing the gap between the plugin's request and a real browser request per docs/testing.md. Local probes with the hardened header set still receive Cloudflare's managed challenge (403, cf-mitigated: challenge), so this is header parity only. Co-Authored-By: AI agent pi <noreply@openai.com>
RibatTRW
added a commit
to RibatTRW/lnreader-plugins
that referenced
this pull request
Sep 22, 2026
…adful Chromium on Xvfb Extend the Plugin Live Check with the challenge-detecting browser fallback approved for daotekno.com (Closes via PR lnreader#2547): when probeSiteReachability sees 403/503 with cf-mitigated: challenge or a Just-a-moment body, the checker spawns a virtual display (Xvfb - preinstalled on GitHub's ubuntu runner images, confirmed from actions/runner-images readmes) when no DISPLAY exists, launches Chromium headful on it, clicks the Turnstile checkbox, extracts cf_clearance, and routes the probe plus the plugin's global fetch for that host through the cleared session (mobile Chrome UA + cookie). The four checks still run unmodified against the real site; if the challenge cannot be solved within the timeout, or no display is available (headless fallback), nothing is patched and the run reports the same INCONCLUSIVE as before. The workflow gains the browser install step (npx playwright install --with-deps chromium). Headless Chromium was measured locally across six variants (plain, swiftshader, webdriver-hidden, humanized input, Ozone-headless, pipe vs port CDP) and cannot complete this site's interactive verification; a headful browser solved it on this network earlier the same day. Authored by an AI agent (pi) as an automated worker task. Co-Authored-By: AI agent pi <noreply@openai.com>
RibatTRW
force-pushed
the
fm/lnreader-daotekno-plugin
branch
from
September 22, 2026 10:27
6ba1edd to
4f27b5a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addition
Closes #2543. New English source plugin for
daotekno.com(plugins/english/daotekno.ts, v1.0.1) plus its 96x96 icon. The site is a custom PHP reader, not WordPress/Madara: catalog at/?page=N(50 cards/page, site-clamped ranges), server-side search at/?q=, chapter tiles in#allChaptersGrid(200 per page, merged and reversed to ascending), chapter bodies in#novel-content. The site exposes no covers, authors, status, or summaries, so the plugin usesdefaultCoverand invents no metadata.Requests carry browser-like headers including the Chrome client-hint and
Sec-Fetchfields, with a mobile ChromeUser-Agentthroughout — desktop UAs receive an HTTP 200 "Mobile Only Content" interstitial instead of chapter text. Refused responses throw with the HTTP status so runner-side blocks report INCONCLUSIVE rather than false empties.Verification
Prettier, eslint, and
build:compilepass. The bundled plugin was exercised end to end through the repo's playground: 50 listing cards matching/?page=1, a 498-chapter novel detail, a 2425-char chapter of real English prose, and a 25-result search matching/?q=sword. CI's live check reports INCONCLUSIVE (HTTP 403 Cloudflare challenge against cookie-less runners), which is the accepted terminal outcome for Cloudflare-gated sources.Caveats: the playground run passed Cloudflare with a
cf_clearancecookie from a real browser session on the same machine — nothing in the plugin depends on it. The icon derives from the connected daotranslate.com favicon; daotekno.com serves no favicon of its own. AI-authored change, no human review.