Initial commit
This commit is contained in:
parent
7671d08591
commit
e5a55daf55
20 changed files with 46 additions and 56 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue