indo fix (#1120)
* LightNovelWP: - bacalightnovel fix chapter parsing * feat: Update source site URL for "MoreNovel" to "Risenovel"
This commit is contained in:
@@ -37,7 +37,7 @@ class LightNovelWPPlugin implements Plugin.PluginBase {
|
|||||||
this.icon = `multisrc/lightnovelwp/${metadata.id.toLowerCase()}/icon.png`;
|
this.icon = `multisrc/lightnovelwp/${metadata.id.toLowerCase()}/icon.png`;
|
||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
const versionIncrements = metadata.options?.versionIncrements || 0;
|
const versionIncrements = metadata.options?.versionIncrements || 0;
|
||||||
this.version = `1.1.${3 + versionIncrements}`;
|
this.version = `1.1.${4 + versionIncrements}`;
|
||||||
this.options = metadata.options ?? ({} as LightNovelWPOptions);
|
this.options = metadata.options ?? ({} as LightNovelWPOptions);
|
||||||
this.filters = metadata.filters satisfies Filters;
|
this.filters = metadata.filters satisfies Filters;
|
||||||
}
|
}
|
||||||
@@ -183,7 +183,7 @@ class LightNovelWPPlugin implements Plugin.PluginBase {
|
|||||||
} else if (isParsingChapterList && name === 'li') {
|
} else if (isParsingChapterList && name === 'li') {
|
||||||
isReadingChapter = true;
|
isReadingChapter = true;
|
||||||
} else if (isReadingChapter) {
|
} else if (isReadingChapter) {
|
||||||
if (name === 'a') {
|
if (name === 'a' && tempChapter.path === undefined) {
|
||||||
tempChapter.path = attribs['href'].replace(baseURL, '').trim();
|
tempChapter.path = attribs['href'].replace(baseURL, '').trim();
|
||||||
} else if (attribs['class'] === 'epl-num') {
|
} else if (attribs['class'] === 'epl-num') {
|
||||||
isReadingChapterInfo = 1;
|
isReadingChapterInfo = 1;
|
||||||
|
|||||||
@@ -116,10 +116,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "morenovel",
|
"id": "morenovel",
|
||||||
"sourceSite": "https://morenovel.net/",
|
"sourceSite": "https://risenovel.com/",
|
||||||
"sourceName": "MoreNovel",
|
"sourceName": "Risenovel",
|
||||||
"options": {
|
"options": {
|
||||||
"useNewChapterEndpoint": true,
|
"useNewChapterEndpoint": true,
|
||||||
|
"versionIncrements": 1,
|
||||||
"lang": "Indonesian"
|
"lang": "Indonesian"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user