Skip to content

Commit

Permalink
Add Source ifreedom (#886)
Browse files Browse the repository at this point in the history
* update

* fix

* genre

* test

* Update freewebnovel.ts

* status parsing

* test readwn

* fix typo

* Update IfreedomScraper.js

* fix ESlint

* Update ReadwnScraper.js

* deleted the build fix

---------

Co-authored-by: Rajarshee Chatterjee <rajarshee.adm@gmail.com>
  • Loading branch information
Rider21 and rajarsheechatterjee authored Jan 15, 2024
1 parent cfcc4bd commit 88a70cb
Show file tree
Hide file tree
Showing 16 changed files with 774 additions and 506 deletions.
138 changes: 115 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/sources/ch/linovelib.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { showToast } from '@hooks/showToast';
import { fetchApi, fetchHtml } from '@utils/fetch/fetch';
import { fetchHtml } from '@utils/fetch/fetch';

import * as cheerio from 'cheerio';

Expand Down Expand Up @@ -74,8 +74,8 @@ const parseNovelAndChapters = async novelUrl => {
genres.push(loadedCheerio(this).text());
});

if (genres && genres.length > 0) {
novel.genres = genres.join(', ');
if (genres.length) {
novel.genre = genres.join(', ');
}

// Table of Content is on a different page than the summary page
Expand Down
Loading

0 comments on commit 88a70cb

Please sign in to comment.