Skip to content

Commit

Permalink
Fix: get correct chapter URLs for Ranobes site
Browse files Browse the repository at this point in the history
See: #1026
  • Loading branch information
dteviot committed Aug 1, 2023
1 parent 81cb041 commit 04684b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/js/parsers/RanobesParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ class RanobesParser extends Parser{
}

extractPartialChapterList(dom) {
let host = new URL(dom.baseURI).hostname;
return RanobesParser.extractTocJson(dom).chapters.map(c => ({
sourceUrl: `https://${host}/read-${c.id}.html`,
sourceUrl: c.link,
title: c.title
}));
}
Expand Down

0 comments on commit 04684b8

Please sign in to comment.