Skip to content

Commit

Permalink
FreeWebNovel: fix covers not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
error7404 committed Jul 9, 2024
1 parent 9440c7c commit dde8b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/english/freewebnovel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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(),
};

Expand Down

0 comments on commit dde8b34

Please sign in to comment.