Skip to content

feat(english): add DaoTekno source plugin for daotekno.com - #2547

Merged
rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
RibatTRW:fm/lnreader-daotekno-plugin
Sep 24, 2026
Merged

rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
RibatTRW:fm/lnreader-daotekno-plugin

Conversation

@RibatTRW

@RibatTRW RibatTRW commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

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 uses defaultCover and invents no metadata.

Requests carry browser-like headers including the Chrome client-hint and Sec-Fetch fields, with a mobile Chrome User-Agent throughout — 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:compile pass. 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_clearance cookie 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.

RibatTRW and others added 2 commits September 22, 2026 13:34
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
RibatTRW force-pushed the fm/lnreader-daotekno-plugin branch from 6ba1edd to 4f27b5a Compare September 22, 2026 10:27
@rajarsheechatterjee
rajarsheechatterjee merged commit b5f89dc into lnreader:master Sep 24, 2026
6 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.

Can i request plug-in? DaoTekno

2 participants