Skip to content

Commit 17b5cda

Browse files
authored
url conversion fixes for royal road and 1st kiss novel for backup update (#3)
Co-authored-by: aspwil <65490493+aspwil@users.noreply.github.com>
1 parent 1a34dcf commit 17b5cda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/routes/guides/upgrade/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ export default function Upgrade() {
123123
if (isUrlAbsolute(novelUrl)) {
124124
novelUrl = oldNovel.novelUrl.replace(plugin.site, "");
125125
}
126-
if (plugin.id === "boxnovel") {
126+
if (plugin.id === "boxnovel" || plugin.id === "1stkissnovel") {
127127
novelUrl = "novel/" + novelUrl + "/";
128128
}
129+
if (plugin.id === "royalroad") {
130+
novelUrl = "fiction/" + novelUrl + "/";
131+
}
129132
migratedNovels.push({
130133
id: oldNovel.novelId,
131134
path: novelUrl.replace("//", "/"),

0 commit comments

Comments
 (0)