From 3e8ea85275a5dd21e0c58a5a3f21e2c49e993117 Mon Sep 17 00:00:00 2001 From: Maix0 <39835848+Maix0@users.noreply.github.com> Date: Thu, 7 Aug 2025 03:39:34 +0200 Subject: [PATCH] plugin(re:library): fixed parsing of novel (#1778) --- src/plugins/english/relibrary.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/english/relibrary.ts b/src/plugins/english/relibrary.ts index 7e8376f..e7d87ba 100644 --- a/src/plugins/english/relibrary.ts +++ b/src/plugins/english/relibrary.ts @@ -164,7 +164,7 @@ class ReLibraryPlugin implements Plugin.PluginBase { name = 'Re:Library'; icon = 'src/en/relibrary/icon.png'; site = 'https://re-library.com'; - version = '1.0.0'; + version = '1.0.1'; private searchFunc = new FuzzySearch(item => [item.name], { sort: true, @@ -209,7 +209,7 @@ class ReLibraryPlugin implements Plugin.PluginBase { if (novel.path === undefined || novel.name === undefined) return; novel.cover = loadedCheerio(el) - .find('.entry-content > table > tbody > tr > td > img') + .find('.entry-content > table > tbody > tr > td > a >img') .attr('src') || defaultCover; if (novel.path.startsWith(this.site)) { novel.path = novel.path.slice(this.site.length); @@ -302,7 +302,7 @@ class ReLibraryPlugin implements Plugin.PluginBase { let chapter_idx = 0; loadedCheerio('.entry-content > div.su-accordion').each((_i1, el) => { loadedCheerio(el) - .find('li.page_item > a') + .find('li > a') .each((_i2, chap_el) => { chapter_idx += 1; let chap_path = loadedCheerio(chap_el).attr('href')?.trim();