Change RoyalRoad regex, fix Faqwiki (#849)

This commit is contained in:
K1ngfish3r
2024-03-22 21:24:02 +08:00
committed by GitHub
parent 4dee3467c2
commit 39e24a510f
4 changed files with 146 additions and 143 deletions
+9 -8
View File
@@ -8,7 +8,7 @@ class LnMTLPlugin implements Plugin.PagePlugin {
name = "LnMTL";
icon = "src/en/lnmtl/icon.png";
site = "https://lnmtl.com/";
version = "1.0.0";
version = "1.0.1";
async sleep (ms: number) {
return new Promise(resolve => setTimeout(resolve, ms))
@@ -112,12 +112,6 @@ class LnMTLPlugin implements Plugin.PagePlugin {
)[+page-1];
const chapter: Plugin.ChapterItem[] = [];
interface ChapterEntry {
number: number;
title: string;
slug: string;
created_at: string;
}
await this.sleep(1000);
const volumeData = await fetchApi(
@@ -243,4 +237,11 @@ class LnMTLPlugin implements Plugin.PagePlugin {
} satisfies Filters;
}
export default new LnMTLPlugin();
export default new LnMTLPlugin();
interface ChapterEntry {
number: number;
title: string;
slug: string;
created_at: string;
}