Last step to Alpha (#710)

* fix: novelhall id

* update readme

* update: actions

* fix: remove volume

* fix: remove showToast
This commit is contained in:
nyagami
2024-01-22 01:54:15 +07:00
committed by GitHub
parent f32c15a78d
commit a29175c421
17 changed files with 1608 additions and 657 deletions
-2
View File
@@ -1,7 +1,6 @@
import { CheerioAPI, load as parseHTML } from "cheerio";
import { fetchApi, fetchFile } from "@libs/fetch";
import { FilterTypes, Filters } from "@libs/filterInputs";
import { showToast } from "@libs/showToast";
import { Plugin } from "@typings/plugin";
import { defaultCover } from "@libs/defaultCover";
@@ -60,7 +59,6 @@ class EarlyNovelPlugin implements Plugin.PluginBase {
}
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
showToast("Early Novel may take 20-30 seconds");
const url = novelUrl;
const headers = new Headers();
const result = await fetchApi(url, { headers });
@@ -1,6 +1,5 @@
import { load as parseHTML } from "cheerio";
import { fetchApi, fetchFile } from "@libs/fetch";
import { showToast } from "@libs/showToast";
import { isUrlAbsolute } from "@libs/isAbsoluteUrl";
import { Novel, Plugin } from "@typings/plugin";
@@ -117,8 +116,6 @@ export const parseChapter: Plugin.parseChapter = async function (chapterUrl) {
};
export const searchNovels: Plugin.searchNovels = async function (searchTerm) {
showToast("Search is not available in this source");
return [];
};
-3
View File
@@ -1,6 +1,5 @@
import { load as parseHTML } from "cheerio";
import { fetchApi, fetchFile } from "@libs/fetch";
import { showToast } from "@libs/showToast";
import { Chapter, Novel, Plugin } from "@typings/plugin";
const pluginId = "lnmtl";
@@ -36,8 +35,6 @@ export const popularNovels: Plugin.popularNovels = async function (page) {
export const parseNovelAndChapters: Plugin.parseNovelAndChapters =
async function (novelUrl) {
showToast("LNMTL might take around 20-30 seconds.");
const url = novelUrl;
const body = await fetchApi(url, {}, pluginId).then((r) => r.text());
+1 -1
View File
@@ -4,7 +4,7 @@ import { Plugin } from "@typings/plugin";
import { Filters } from "@libs/filterInputs";
class NovelHall implements Plugin.PluginBase {
id = "novelhold";
id = "novelhall";
name = "Novel Hall";
version = "1.0.0";
icon = "src/en/novelhall/icon.png";