From 17db8bd0fd953085c9c47caffab7edbfe1a3c505 Mon Sep 17 00:00:00 2001 From: jake1015 <160114161+jake1015@users.noreply.github.com> Date: Sun, 26 May 2024 21:26:24 +0900 Subject: [PATCH] Fix(plugin): agiton hardcoded domain in novel search (#955) * Fix hardcoded domain in novel search Modified the novel search feature to use this.site instead of a hardcoded domain. * version change --- plugins/korean/Agitoon.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/korean/Agitoon.ts b/plugins/korean/Agitoon.ts index e8ef2fb..46c120d 100644 --- a/plugins/korean/Agitoon.ts +++ b/plugins/korean/Agitoon.ts @@ -9,7 +9,7 @@ class Agitoon implements Plugin.PluginBase { name = 'Agitoon'; icon = 'src/kr/agitoon/icon.png'; site = 'https://agit655.xyz'; - version = '2.0.0'; + version = '2.0.1'; async popularNovels( pageNo: number, @@ -119,7 +119,7 @@ class Agitoon implements Plugin.PluginBase { } async searchNovels(searchTerm: string): Promise { - const rawResults = await fetchApi('https://agit501.xyz/novel/search.php', { + const rawResults = await fetchApi(this.site + '/novel/search.php', { headers: { 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8', },