fix: Madara Double Slashes (#2021)
This commit is contained in:
@@ -149,7 +149,7 @@ class MadaraPlugin implements Plugin.PluginBase {
|
|||||||
const novel: Plugin.NovelItem = {
|
const novel: Plugin.NovelItem = {
|
||||||
name: novelName,
|
name: novelName,
|
||||||
cover: novelCover,
|
cover: novelCover,
|
||||||
path: novelUrl.replace(/https?:\/\/.*?\//, '/'),
|
path: novelUrl.replace(/https?:\/\/.*?\//, ''),
|
||||||
};
|
};
|
||||||
novels.push(novel);
|
novels.push(novel);
|
||||||
},
|
},
|
||||||
@@ -347,7 +347,7 @@ class MadaraPlugin implements Plugin.PluginBase {
|
|||||||
if (chapterUrl && chapterUrl != '#' && !(locked && this.hideLocked)) {
|
if (chapterUrl && chapterUrl != '#' && !(locked && this.hideLocked)) {
|
||||||
chapters.push({
|
chapters.push({
|
||||||
name: chapterName,
|
name: chapterName,
|
||||||
path: chapterUrl.replace(/https?:\/\/.*?\//, '/'),
|
path: chapterUrl.replace(/https?:\/\/.*?\//, ''),
|
||||||
releaseTime: releaseDate || null,
|
releaseTime: releaseDate || null,
|
||||||
chapterNumber: totalChapters - chapterIndex,
|
chapterNumber: totalChapters - chapterIndex,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user