Initial commit

This commit is contained in:
TelepathicWalrus 2023-12-06 17:57:35 +00:00 committed by Bill Thornton
parent 7671d08591
commit e5a55daf55
20 changed files with 46 additions and 56 deletions

View file

@ -1,6 +1,7 @@
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto';
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
import type { UserDto } from '@jellyfin/sdk/lib/generated-client/models/user-dto';
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/';
import escapeHtml from 'escape-html';
import type { ApiClient } from 'jellyfin-apiclient';
@ -24,12 +25,12 @@ function getFetchLatestItemsFn(
let limit = 16;
if (enableOverflow) {
if (collectionType === 'music') {
if (collectionType === CollectionType.Music) {
limit = 30;
}
} else if (collectionType === 'tvshows') {
} else if (collectionType === CollectionType.TvShows) {
limit = 5;
} else if (collectionType === 'music') {
} else if (collectionType === CollectionType.Music) {
limit = 9;
} else {
limit = 8;