From fe84561c9c870237dce3047c4ecc1b03d16b0921 Mon Sep 17 00:00:00 2001 From: Justin COLLON <48163201+error7404@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:22:38 +0200 Subject: [PATCH] FreeWebNovel: fix covers not loading (#1037) --- src/plugins/english/freewebnovel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/english/freewebnovel.ts b/src/plugins/english/freewebnovel.ts index 0dde35a..7d9fbe9 100644 --- a/src/plugins/english/freewebnovel.ts +++ b/src/plugins/english/freewebnovel.ts @@ -8,7 +8,7 @@ class FreeWebNovel implements Plugin.PluginBase { id = 'FWN.com'; name = 'Free Web Novel'; site = 'https://freewebnovel.com'; - version = '1.0.1'; + version = '1.0.2'; icon = 'src/en/freewebnovel/icon.png'; async getCheerio(url: string): Promise { @@ -24,7 +24,7 @@ class FreeWebNovel implements Plugin.PluginBase { return loadedCheerio('.li-row') .map((index, element) => ({ name: loadedCheerio(element).find('.tit').text() || '', - cover: loadedCheerio(element).find('img').attr('src'), + cover: this.site + loadedCheerio(element).find('img').attr('src'), path: loadedCheerio(element).find('h3 > a').attr('href') || '', })) .get() @@ -61,7 +61,7 @@ class FreeWebNovel implements Plugin.PluginBase { const novel: Plugin.SourceNovel = { path: novelPath, name: loadedCheerio('h1.tit').text(), - cover: loadedCheerio('.pic > img').attr('src'), + cover: this.site + loadedCheerio('.pic > img').attr('src'), summary: loadedCheerio('.inner').text().trim(), };