Skip to content

Commit

Permalink
fix(source): Fix Riwyat Chapter Text
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarsheechatterjee committed Jul 30, 2022
1 parent cbb3c7c commit e1401ba
Show file tree
Hide file tree
Showing 2 changed files with 888 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/sources/multisrc/madara/MadaraScraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ class MadaraScraper {

const loadedCheerio = cheerio.load(body);

if (sourceId === 130) {
loadedCheerio('font').remove();
}

let chapterName =
loadedCheerio('.text-center').text() ||
loadedCheerio('#chapter-heading').text();
Expand Down
Loading

1 comment on commit e1401ba

@rajarsheechatterjee
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.