Fix special characters breaking search in most sources (#1557)

This commit is contained in:
Adam Kemish
2025-03-15 15:35:31 +08:00
committed by GitHub
parent 3a10e24545
commit ea7965bdda
28 changed files with 103 additions and 73 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ class ReadNovelFullPlugin implements Plugin.PluginBase {
this.icon = `multisrc/readnovelfull/${metadata.id.toLowerCase()}/icon.png`;
this.site = metadata.sourceSite;
const versionIncrements = metadata.options?.versionIncrements || 0;
this.version = `1.0.${0 + versionIncrements}`;
this.version = `1.0.${1 + versionIncrements}`;
this.options = metadata.options;
}
@@ -229,7 +229,7 @@ class ReadNovelFullPlugin implements Plugin.PluginBase {
this.site +
'/' +
this.options?.searchPage
.replace('%%SEARCH%%', searchTerm)
.replace('%%SEARCH%%', encodeURIComponent(searchTerm))
.replace('%%PAGE%%', page.toString());
const $ = await this.getCheerio(url, true);