mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix(jellyfin): use undefined instead of -1 for limit for jellyfin 10.10, fix item-image
This commit is contained in:
@@ -366,7 +366,7 @@ export const JellyfinController: InternalControllerEndpoint = {
|
||||
GenreIds: query.genreIds ? query.genreIds.join(',') : undefined,
|
||||
IncludeItemTypes: 'MusicAlbum',
|
||||
IsFavorite: query.favorite,
|
||||
Limit: query.limit,
|
||||
Limit: query.limit === -1 ? undefined : query.limit,
|
||||
ParentId: getLibraryId(query.musicFolderId),
|
||||
Recursive: true,
|
||||
SearchTerm: query.searchTerm,
|
||||
|
||||
@@ -41,13 +41,13 @@ const BaseItemImage = (
|
||||
type?: keyof z.infer<typeof GeneralSettingsSchema>['imageRes'];
|
||||
},
|
||||
) => {
|
||||
const { src, ...rest } = props;
|
||||
const { serverId, src, ...rest } = props;
|
||||
|
||||
const imageUrl = useItemImageUrl({
|
||||
id: props.id,
|
||||
imageUrl: src,
|
||||
itemType: props.itemType,
|
||||
serverId: props.serverId || undefined,
|
||||
serverId: serverId || undefined,
|
||||
type: props.type,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user