Plugins fixed (#903)

* test

* fast fix

* fix

* fix

* Update ranobelib.ts
This commit is contained in:
Rider21
2024-04-25 17:53:16 +03:00
committed by GitHub
parent 2c4490e5bd
commit 9bc558936d
24 changed files with 63683 additions and 62335 deletions
+3 -2
View File
@@ -14,7 +14,8 @@ class NovelBin implements Plugin.PluginBase {
loadedCheerio('.col-novel-main .list-novel .row').each((i, el) => {
const novelName = loadedCheerio(el).find('h3.novel-title > a').text();
const novelCover = loadedCheerio(el).find('img.cover')
const novelCover = loadedCheerio(el)
.find('img.cover')
.attr('data-src')
?.replace('_200_89', '');
const novelUrl = loadedCheerio(el)
@@ -146,7 +147,7 @@ class NovelBin implements Plugin.PluginBase {
return fetchFile(url, {
headers: {
'referrer': this.site,
}
},
});
}
+1 -1
View File
@@ -261,7 +261,7 @@ class NovelUpdates implements Plugin.PluginBase {
const parts = result.url.split('/');
const link = `${parts[0]}//api.${parts[2]}/api/chapters/?id=${parts[3]}&num=${parts[4]}`;
const json = await fetchApi(link).then(r => r.json());
chapterText =
chapterText =
json.currentChapter.head +
`<br><hr><br>` +
json.currentChapter.body +