fix: Bug Fixes and Feature Improvements to Linovelib Plugin (#1984)

* fix(linovelib): Searching not work

* ci: fix branch cannot be correctly identified in forked environment

* fix: BRANCH cannot be identified

* fix(linovelib): correctly get cover image in redirect case of searching

* fix: why we need a prefix slash here? remove it

* chore(linovelib): update linovelib plugin version

* fix: before LNReader puts its default UA to chrome, forcely set LNReader plugin's UA to Chrome's UA

* refactor: intgrates FetchInit into plugin

* feat: add chapter name transform

* feat(linovelib): add decryptor for shuffle scramble of original html

* feat(linovelib): use external server to extract shuffle coefficients

* fix(linovelib): extract author name more precisely

* fix(linovelib): set Referer header to bypass anti-leeching/hotlinking of image source

Also, use LocalStorage to store coefficients and chapter.js version

* refactor: delete FetchInit definition in this plugin

* fix(linovelib): replace localStorage with storage utility for better data management

* fix(linovelib): update storage import path to use the correct library

* feat(linovelib): Implement chapter number

* refactor(linovelib): as mobile site equipped with strong cloudflare challenge, move most of parsing logic to LDS server

* fix(linovelib): update API calls to use query parameters instead of POST requests for novel, chapter, and search endpoints

* fix(linovelib): add caching mechanism for novel and chapter parsing to reduce API calls

* refactor(linovelib): refactor server URL handling to use class property for API requests

* fix: apply changes pointed by review

* docs(linovelib): make some comments
This commit is contained in:
ConstasJ
2026-02-06 02:12:31 +08:00
committed by GitHub
parent 99932748de
commit 6e2e51f3dd
7 changed files with 289 additions and 733 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ if [[ "$1" == "--all-branches" ]]; then
echo "Compiling TypeScript..."
npx tsc --project tsconfig.production.json
echo "# $branch" >> $GITHUB_STEP_SUMMARY
npm run build:manifest -- --only-new 2>> $GITHUB_STEP_SUMMARY
BRANCH=$dist npm run build:manifest -- --only-new 2>> $GITHUB_STEP_SUMMARY
if [ ! -d ".dist" ] || [ -z "$(ls -A .dist)" ]; then
echo "❌ ERROR: Manifest generation failed - .dist is missing or empty"
exit 1