fix: Madara Double Slashes (#2021)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user