Plugins fixed (#903)
* test * fast fix * fix * fix * Update ranobelib.ts
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user