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:
@@ -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',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user