fix: remove user agent (#695)
This commit is contained in:
@@ -9,7 +9,7 @@ class KolNovel implements Plugin.PluginBase {
|
||||
icon = "multisrc/wpmangastream/icons/kolnovel.png";
|
||||
site = "https://kolnovel.lol/";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -10,7 +10,7 @@ class Linovelib implements Plugin.PluginBase {
|
||||
icon = "src/cn/linovelib/icon.png";
|
||||
site = "https://w.linovelib.com";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -10,7 +10,7 @@ class AllNovelFullPlugin implements Plugin.PluginBase {
|
||||
icon = "src/en/allnovelfull/icon.png";
|
||||
site = "https://allnovelfull.net";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
parseNovels(loadedCheerio: CheerioAPI) {
|
||||
const novels: Plugin.NovelItem[] = [];
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class BLN implements Plugin.PluginBase {
|
||||
site = "https://bestlightnovel.com/";
|
||||
filter?: undefined;
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -10,7 +10,7 @@ class ComradeMaoPlugin implements Plugin.PluginBase {
|
||||
site = "https://comrademao.com/";
|
||||
version = "1.0.0";
|
||||
icon = "src/en/comrademao/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
parseNovels(loadedCheerio: CheerioAPI) {
|
||||
const novels: Plugin.NovelItem[] = [];
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class DDLPlugin implements Plugin.PluginBase {
|
||||
site = "https://www.divinedaolibrary.com/";
|
||||
version = "1.0.0";
|
||||
icon = "src/en/divinedaolibrary/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
parseNovels(loadedCheerio: CheerioAPI, searchTerm?: string){
|
||||
let novels: Plugin.NovelItem[] = [];
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class EarlyNovelPlugin implements Plugin.PluginBase {
|
||||
version = "1.0.0";
|
||||
icon = "multisrc/madara/icons/latestnovel.png";
|
||||
site = "https://earlynovel.net/";
|
||||
userAgent = "";
|
||||
|
||||
parseNovels(loadedCheerio: CheerioAPI){
|
||||
const novels: Plugin.NovelItem[] = [];
|
||||
|
||||
|
||||
@@ -1,119 +0,0 @@
|
||||
import { load as parseHTML } from "cheerio";
|
||||
import { fetchApi, fetchFile } from "@libs/fetch";
|
||||
import { FilterTypes, Filters } from "@libs/filterInputs";
|
||||
import { Plugin } from "@typings/plugin";
|
||||
|
||||
class FTest implements Plugin.PluginBase {
|
||||
id = "ftest";
|
||||
name = "Filter Test";
|
||||
icon = "src/en/noblemtl/icon.png";
|
||||
site = "https://noblemtl.com/";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||
): Promise<Plugin.NovelItem[]> {
|
||||
return [];
|
||||
}
|
||||
|
||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||
return { url: "" };
|
||||
}
|
||||
async parseChapter(chapterUrl: string): Promise<string> {
|
||||
return "Empty chapter";
|
||||
}
|
||||
|
||||
async searchNovels(
|
||||
searchTerm: string,
|
||||
pageNo?: number | undefined
|
||||
): Promise<Plugin.NovelItem[]> {
|
||||
return [];
|
||||
}
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
return await fetchFile(url);
|
||||
}
|
||||
|
||||
filters = {
|
||||
picker: {
|
||||
type: FilterTypes.Picker,
|
||||
label: "Picker",
|
||||
options: [
|
||||
{ label: "A", value: "a" },
|
||||
{ label: "B", value: "b" },
|
||||
],
|
||||
value: "a",
|
||||
},
|
||||
nd_picker: {
|
||||
type: FilterTypes.Picker,
|
||||
label: "ND_Picker",
|
||||
options: [
|
||||
{ label: "A", value: "a" },
|
||||
{ label: "B", value: "b" },
|
||||
],
|
||||
value: "b",
|
||||
},
|
||||
checkbox: {
|
||||
type: FilterTypes.CheckboxGroup,
|
||||
label: "Checkbox",
|
||||
options: [
|
||||
{ label: "A", value: "a" },
|
||||
{ label: "B", value: "b" },
|
||||
],
|
||||
value: [],
|
||||
},
|
||||
nd_checkbox: {
|
||||
type: FilterTypes.CheckboxGroup,
|
||||
label: "ND_Checkbox",
|
||||
options: [
|
||||
{ label: "A", value: "a" },
|
||||
{ label: "B", value: "b" },
|
||||
],
|
||||
value: ["a"],
|
||||
},
|
||||
switch: {
|
||||
type: FilterTypes.Switch,
|
||||
label: "Switch",
|
||||
value: false,
|
||||
},
|
||||
nd_switch: {
|
||||
type: FilterTypes.Switch,
|
||||
label: "ND_Switch",
|
||||
value: true,
|
||||
},
|
||||
text: {
|
||||
type: FilterTypes.TextInput,
|
||||
label: "Text",
|
||||
value: "",
|
||||
},
|
||||
nd_text: {
|
||||
type: FilterTypes.TextInput,
|
||||
label: "ND_Text",
|
||||
value: "some default value",
|
||||
},
|
||||
xcheckbox: {
|
||||
type: FilterTypes.ExcludableCheckboxGroup,
|
||||
label: "XCheckbox",
|
||||
options: [
|
||||
{ label: "A", value: "a" },
|
||||
{ label: "C", value: "c" },
|
||||
{ label: "B", value: "b" },
|
||||
],
|
||||
value: {},
|
||||
},
|
||||
nd_xcheckbox: {
|
||||
type: FilterTypes.ExcludableCheckboxGroup,
|
||||
label: "ND_XCheckbox",
|
||||
options: [
|
||||
{ label: "A", value: "a" },
|
||||
{ label: "C", value: "c" },
|
||||
{ label: "B", value: "b" },
|
||||
],
|
||||
value: { exclude: ["a"], include: ["b"] },
|
||||
},
|
||||
} satisfies Filters;
|
||||
}
|
||||
|
||||
const Test = new FTest();
|
||||
|
||||
@@ -9,7 +9,7 @@ class FreeWebNovel implements Plugin.PluginBase {
|
||||
site = "https://freewebnovel.com";
|
||||
version = "1.0.0";
|
||||
icon = "src/en/freewebnovel/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -9,7 +9,7 @@ class NobleMTL implements Plugin.PluginBase {
|
||||
icon = "src/en/noblemtl/icon.png";
|
||||
site = "https://noblemtl.com/";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -9,7 +9,7 @@ class PandaMTL implements Plugin.PluginBase {
|
||||
icon = "src/en/wordpress/icon.png";
|
||||
site = "https://pandamtl.com/";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -8,7 +8,7 @@ class ChireadsPlugin implements Plugin.PluginBase {
|
||||
icon: string;
|
||||
site: string;
|
||||
version: string;
|
||||
userAgent: string;
|
||||
|
||||
|
||||
constructor() {
|
||||
this.id = "chireads.com";
|
||||
@@ -16,7 +16,7 @@ class ChireadsPlugin implements Plugin.PluginBase {
|
||||
this.icon = "src/fr/chireads/icon.png";
|
||||
this.site = "https://chireads.com";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36";
|
||||
|
||||
}
|
||||
parseNovels(loadedCheerio: CheerioAPI) {
|
||||
return [];
|
||||
|
||||
@@ -9,7 +9,7 @@ class NovelDeGlacePlugin implements Plugin.PluginBase{
|
||||
icon: string;
|
||||
site: string;
|
||||
version: string;
|
||||
userAgent: string;
|
||||
|
||||
|
||||
constructor() {
|
||||
this.id = "NDG.com";
|
||||
@@ -17,7 +17,7 @@ class NovelDeGlacePlugin implements Plugin.PluginBase{
|
||||
this.icon = "src/fr/noveldeglace/icon.png";
|
||||
this.site = "https://noveldeglace.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "''";
|
||||
|
||||
}
|
||||
|
||||
async popularNovels(page: number): Promise<Plugin.NovelItem[]> {
|
||||
|
||||
@@ -9,7 +9,7 @@ class LightNovelBrasil implements Plugin.PluginBase {
|
||||
icon = "multisrc/wpmangastream/icons/lightnovelbrasil.png";
|
||||
site = "https://lightnovelbrasil.com/";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -10,7 +10,7 @@ class freedlit implements Plugin.PluginBase {
|
||||
site = "https://freedlit.space";
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/freedlit/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -15,7 +15,7 @@ class AuthorToday implements Plugin.PluginBase {
|
||||
icon = "src/ru/authortoday/icon.png";
|
||||
site = "https://author.today";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -11,7 +11,7 @@ class Bookriver implements Plugin.PluginBase {
|
||||
site = "https://bookriver.ru";
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/bookriver/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -11,7 +11,7 @@ class ficbook implements Plugin.PluginBase {
|
||||
site = "https://ficbook.net";
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/ficbook/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -10,7 +10,7 @@ class Jaomix implements Plugin.PluginBase {
|
||||
site = "https://jaomix.ru";
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/jaomix/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -12,7 +12,7 @@ class TL implements Plugin.PluginBase {
|
||||
site = "https://novel.tl";
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/noveltl/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -11,7 +11,7 @@ class RNBH implements Plugin.PluginBase {
|
||||
version = "1.0.0";
|
||||
site = "https://ranobehub.org/";
|
||||
icon = "src/ru/ranobehub/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -12,7 +12,7 @@ class RLIB implements Plugin.PluginBase {
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/ranobelib/icon.png";
|
||||
ui: string | number | undefined = undefined;
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -12,7 +12,7 @@ class RNRF implements Plugin.PluginBase {
|
||||
site = "https://ранобэ.рф";
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/ranoberf/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -10,7 +10,7 @@ class ReN implements Plugin.PluginBase {
|
||||
site = "https://renovels.org";
|
||||
version = "1.0.0";
|
||||
icon = "src/ru/renovels/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -12,7 +12,7 @@ class TuNovelaLigera implements Plugin.PluginBase {
|
||||
icon = "src/es/tunovelaligera/icon.png";
|
||||
site = "https://tunovelaligera.com/";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
|
||||
async popularNovels(
|
||||
|
||||
@@ -9,7 +9,7 @@ class LSHNovel implements Plugin.PluginBase {
|
||||
icon = "multisrc/wpmangastream/icons/lshnovel.png";
|
||||
site = "https://lshnovel.com/";
|
||||
version = "1.0.0";
|
||||
userAgent = "";
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||
|
||||
@@ -9,7 +9,7 @@ class Smakolykytl implements Plugin.PluginBase {
|
||||
site = "https://smakolykytl.site/";
|
||||
version = "1.0.0";
|
||||
icon = "src/ua/smakolykytl/icon.png";
|
||||
userAgent = "";
|
||||
|
||||
|
||||
async popularNovels(
|
||||
pageNo: number,
|
||||
|
||||
@@ -8,7 +8,7 @@ class HakoPlugin implements Plugin.PluginBase {
|
||||
icon: string;
|
||||
site: string;
|
||||
version: string;
|
||||
userAgent: string;
|
||||
|
||||
|
||||
constructor() {
|
||||
this.id = "ln.hako";
|
||||
@@ -16,7 +16,7 @@ class HakoPlugin implements Plugin.PluginBase {
|
||||
this.icon = "src/vi/hakolightnovel/icon.png";
|
||||
this.site = "https://ln.hako.vn";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
|
||||
}
|
||||
parseNovels(loadedCheerio: CheerioAPI) {
|
||||
const novels: Plugin.NovelItem[] = [];
|
||||
|
||||
Reference in New Issue
Block a user