Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
See: #1098
  • Loading branch information
dteviot committed Oct 24, 2023
1 parent be9d160 commit 1cf5ae8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions plugin/js/parsers/CreativeNovelsParser.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
/*
https://fantasy-books.live/ was renamed to creativenovels.com
*/
"use strict";
parserFactory.register("creativenovels.com", function() { return new CreativeNovelsParser() });
class CreativeNovelsParser extends Parser{
constructor() {
super();
}

getChapterUrls(dom) {
let chapters = [...dom.querySelectorAll("div.post_box a")]
async getChapterUrls(dom) {
return [...dom.querySelectorAll("div#chapter_list_novel_page, div.post_box a")]
.map(a => util.hyperLinkToChapter(a));
return Promise.resolve(chapters);
}

findContent(dom) {
return dom.querySelector("div.content");
return dom.querySelector("div.entry-content.content");
};

removeUnwantedElementsFromContentElement(element) {
Expand Down

0 comments on commit 1cf5ae8

Please sign in to comment.