fix: remove user agent (#695)

This commit is contained in:
nyagami
2024-01-18 20:32:01 +07:00
committed by GitHub
parent 402052bb22
commit cd3d96937a
116 changed files with 769 additions and 417 deletions
+2 -2
View File
@@ -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 [];
+2 -2
View File
@@ -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[]> {