Feat: ImageRequestInit (#979)

* add ImageRequestInit & fix Hako

* remove multisrc fetchFile

* remove plugins fetchFile

* update docs and template file
This commit is contained in:
nyagami
2024-06-08 20:09:33 +07:00
committed by GitHub
parent 6062f51460
commit 60d95fb8d2
85 changed files with 441 additions and 692 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
import { load } from 'cheerio';
import { Parser } from 'htmlparser2';
import { fetchApi, fetchFile } from '@libs/fetch';
import { fetchApi } from '@libs/fetch';
import { Plugin } from '@typings/plugin';
import { NovelStatus } from '@libs/novelStatus';
import { defaultCover } from '@libs/defaultCover';
@@ -407,8 +407,6 @@ class LightNovelWPPlugin implements Plugin.PluginBase {
const html = await this.safeFecth(url, true);
return this.parseNovels(html);
}
fetchImage = fetchFile;
}
function extractChapterNumber(data: string, tempChapter: Plugin.ChapterItem) {