From 532e380a56b02f87301d047c185b96febafd9c09 Mon Sep 17 00:00:00 2001 From: eternasuno <22316214+eternasuno@users.noreply.github.com> Date: Sat, 25 May 2024 23:10:55 +0900 Subject: [PATCH] fix(route): update 69shu url (#15704) --- lib/routes/69shu/article.ts | 10 +++++----- lib/routes/69shu/namespace.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/routes/69shu/article.ts b/lib/routes/69shu/article.ts index 1a4b721b9..e153292a1 100644 --- a/lib/routes/69shu/article.ts +++ b/lib/routes/69shu/article.ts @@ -6,9 +6,9 @@ import type { Route, DataItem } from '@/types'; export const route: Route = { path: '/article/:id', name: '章节', - url: 'www.69shu.top', + url: 'www.69shuba.pro', maintainers: ['eternasuno'], - example: '/article/47117', + example: '/69shu/article/47117', parameters: { id: '小说 id, 可在对应小说页 URL 中找到' }, categories: ['reading'], features: { @@ -21,13 +21,13 @@ export const route: Route = { }, radar: [ { - source: ['www.69shu.top/book/:id.htm'], + source: ['www.69shuba.pro/book/:id.htm'], target: '/article/:id', }, ], handler: async (ctx) => { const { id } = ctx.req.param(); - const link = `https://www.69shu.top/book/${id}.htm`; + const link = `https://www.69shuba.pro/book/${id}.htm`; const $ = load(await get(link)); const item = await Promise.all( @@ -91,6 +91,6 @@ const decrypt = (txt: string, articleid: string, chapterid: string, decryptionMa .split('

') .map((line, index, array) => (lineMap[index] ? array[lineMap[index]] : line)) .slice(1, -1) - .join('
') + .join('

') .replaceAll(/\u2003|()/g, ''); }; diff --git a/lib/routes/69shu/namespace.ts b/lib/routes/69shu/namespace.ts index 1037cff1d..e02b40b52 100644 --- a/lib/routes/69shu/namespace.ts +++ b/lib/routes/69shu/namespace.ts @@ -2,5 +2,5 @@ import type { Namespace } from '@/types'; export const namespace: Namespace = { name: '69书吧', - url: '69shu.top', + url: '69shuba.pro', };