Skip to content

Commit

Permalink
Remove the -100000 which are defaulted in kavita
Browse files Browse the repository at this point in the history
  • Loading branch information
KaitoKid committed Apr 18, 2024
1 parent f045161 commit 0b9448b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kavya/Kavya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ export class Kavya implements ChapterProviding, HomePageSectionsProviding, Manga
const item: any = {
id: `${chapter.id}`,
mangaId: mangaId,
chapNum: chapter.isSpecial ? j++ : parseFloat(chapter.number), // chapter.number is 0 when it's a special
chapNum: chapter.number === "-100000" ? 1 : (chapter.isSpecial ? j++ : parseFloat(chapter.number)), // chapter.number is 0 when it's a special
name: chapter.isSpecial ? title : name,
time: new Date(chapter.releaseDate === '0001-01-01T00:00:00' ? chapter.created : chapter.releaseDate),
volume: parseFloat(volume.name),
...(volume.name !== "-100000" && { volume: parseFloat(volume.name) }),
group: `${(chapter.isSpecial ? 'Specials · ' : '')}${chapter.pages} pages ${progress}`,
_index: i++,
// sortIndex is unused, as it seems to have an issue when changing the sort order
Expand Down

0 comments on commit 0b9448b

Please sign in to comment.