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
+4 -5
View File
@@ -7,7 +7,7 @@ import { defaultCover } from '@libs/defaultCover';
class Sunovels implements Plugin.PagePlugin {
id = 'sunovels';
name = 'Sunovels';
version = '1.0.0';
version = '1.0.1';
icon = 'src/ar/sunovels/icon.png';
site = 'https://sunovels.com/';
@@ -52,7 +52,7 @@ class Sunovels implements Plugin.PagePlugin {
async popularNovels(
page: number,
{ showLatestNovels, filters }: Plugin.PopularNovelsOptions<Filters>,
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>,
): Promise<Plugin.NovelItem[]> {
const pageCorrected = page - 1;
let link = `${this.site}library?`;
@@ -137,7 +137,7 @@ class Sunovels implements Plugin.PagePlugin {
name: item.chapterName,
releaseTime: new Date(item.releaseTime).toISOString(),
path: item.chapterUrl,
chapterNumber: item.chapterNumber,
chapterNumber: Number(item.chapterNumber),
});
});
return chapter;
@@ -169,8 +169,7 @@ class Sunovels implements Plugin.PagePlugin {
const dateAttr = loadedCheerio(el)
.find('time.chapter-update')
.attr('datetime');
const date = new Date(dateAttr);
const releaseTime = date.toISOString();
const releaseTime = dateAttr ? new Date(dateAttr).toISOString() : '';
const chapternumber = loadedCheerio(el)
.find('strong.chapter-title')
.text()