Skip to content

Commit

Permalink
Set all chapters' and specials' volume to 0 so it's sorted above volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
KaitoKid committed Apr 18, 2024
1 parent 0b9448b commit 4c57655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kavya/Kavya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class Kavya implements ChapterProviding, HomePageSectionsProviding, Manga
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.name !== "-100000" && { volume: parseFloat(volume.name) }),
volume: chapter.isSpecial ? 0 : volume.name === "-100000" ? 0 : parseFloat(volume.name) , // assign both special and chapters w/o volumes w/ volume 0 as it's hidden by paperback
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 4c57655

Please sign in to comment.