fix: Madara Double Slashes (#2021)

This commit is contained in:
Rojikku
2026-02-12 12:44:48 -05:00
committed by GitHub
parent 09ed25e6dd
commit ecbde5f3a2
+2 -2
View File
@@ -149,7 +149,7 @@ class MadaraPlugin implements Plugin.PluginBase {
const novel: Plugin.NovelItem = {
name: novelName,
cover: novelCover,
path: novelUrl.replace(/https?:\/\/.*?\//, '/'),
path: novelUrl.replace(/https?:\/\/.*?\//, ''),
};
novels.push(novel);
},
@@ -347,7 +347,7 @@ class MadaraPlugin implements Plugin.PluginBase {
if (chapterUrl && chapterUrl != '#' && !(locked && this.hideLocked)) {
chapters.push({
name: chapterName,
path: chapterUrl.replace(/https?:\/\/.*?\//, '/'),
path: chapterUrl.replace(/https?:\/\/.*?\//, ''),
releaseTime: releaseDate || null,
chapterNumber: totalChapters - chapterIndex,
});