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
This commit is contained in:
jake1015
2024-05-26 21:26:24 +09:00
committed by GitHub
parent 54757af556
commit 17db8bd0fd
+2 -2
View File
@@ -9,7 +9,7 @@ class Agitoon implements Plugin.PluginBase {
name = 'Agitoon'; name = 'Agitoon';
icon = 'src/kr/agitoon/icon.png'; icon = 'src/kr/agitoon/icon.png';
site = 'https://agit655.xyz'; site = 'https://agit655.xyz';
version = '2.0.0'; version = '2.0.1';
async popularNovels( async popularNovels(
pageNo: number, pageNo: number,
@@ -119,7 +119,7 @@ class Agitoon implements Plugin.PluginBase {
} }
async searchNovels(searchTerm: string): Promise<Plugin.NovelItem[]> { async searchNovels(searchTerm: string): Promise<Plugin.NovelItem[]> {
const rawResults = await fetchApi('https://agit501.xyz/novel/search.php', { const rawResults = await fetchApi(this.site + '/novel/search.php', {
headers: { headers: {
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
}, },