fix: linter issues

This commit is contained in:
K1ngfish3r
2026-04-23 01:04:42 +05:00
parent 5e195b7f53
commit 2396df38bb
111 changed files with 2738 additions and 2160 deletions
+8 -4
View File
@@ -9,7 +9,7 @@ import { storage } from '@libs/storage';
class NovelFire implements Plugin.PluginBase {
id = 'novelfire';
name = 'Novel Fire';
version = '1.4.1';
version = '1.4.2';
icon = 'src/en/novelfire/icon.png';
site = 'https://novelfire.net/';
webStorageUtilized = true;
@@ -294,7 +294,7 @@ class NovelFire implements Plugin.PluginBase {
}
novel.genres = $('.categories .property-item')
.map((i, el) => $(el).text())
.map((_, el) => $(el).text())
.toArray()
.join(',');
@@ -356,7 +356,11 @@ class NovelFire implements Plugin.PluginBase {
if (post_id && !isNaN(Number(post_id))) {
try {
const chapters = await this.getAllChapters(novelPath, post_id, page);
const chapters = await this.getAllChapters(
novelPath,
String(post_id),
page,
);
return { chapters };
} catch (e) {
// Fallback to scraping if AJAX fails
@@ -373,7 +377,7 @@ class NovelFire implements Plugin.PluginBase {
const loadedCheerio = load(body);
const chapters = loadedCheerio('.chapter-list li')
.map((index, ele) => {
.map((_, ele) => {
const chapterName =
loadedCheerio(ele).find('a').attr('title') || 'No Title Found';
const chapterPath = loadedCheerio(ele).find('a').attr('href');