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,
|
GenreIds: query.genreIds ? query.genreIds.join(',') : undefined,
|
||||||
IncludeItemTypes: 'MusicAlbum',
|
IncludeItemTypes: 'MusicAlbum',
|
||||||
IsFavorite: query.favorite,
|
IsFavorite: query.favorite,
|
||||||
Limit: query.limit,
|
Limit: query.limit === -1 ? undefined : query.limit,
|
||||||
ParentId: getLibraryId(query.musicFolderId),
|
ParentId: getLibraryId(query.musicFolderId),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
SearchTerm: query.searchTerm,
|
SearchTerm: query.searchTerm,
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ const BaseItemImage = (
|
|||||||
type?: keyof z.infer<typeof GeneralSettingsSchema>['imageRes'];
|
type?: keyof z.infer<typeof GeneralSettingsSchema>['imageRes'];
|
||||||
},
|
},
|
||||||
) => {
|
) => {
|
||||||
const { src, ...rest } = props;
|
const { serverId, src, ...rest } = props;
|
||||||
|
|
||||||
const imageUrl = useItemImageUrl({
|
const imageUrl = useItemImageUrl({
|
||||||
id: props.id,
|
id: props.id,
|
||||||
imageUrl: src,
|
imageUrl: src,
|
||||||
itemType: props.itemType,
|
itemType: props.itemType,
|
||||||
serverId: props.serverId || undefined,
|
serverId: serverId || undefined,
|
||||||
type: props.type,
|
type: props.type,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user