mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-01 03:56:38 +08:00
fix library preview series counts
This commit is contained in:
@@ -8,6 +8,10 @@ export type LibraryPreview = {
|
||||
cards: SeriesCard[]
|
||||
}
|
||||
|
||||
export function isSeriesLibraryType(type?: string) {
|
||||
return type === 'tv' || type === 'anime' || type === 'variety'
|
||||
}
|
||||
|
||||
export function latestLibraryCards(items: Media[]): SeriesCard[] {
|
||||
return groupSeries(items)
|
||||
.sort((a, b) => mediaTime(b.rep) - mediaTime(a.rep) || artworkScore(b.rep) - artworkScore(a.rep))
|
||||
|
||||
Reference in New Issue
Block a user