mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
🐛 Fix Jellyseerr request
This commit is contained in:
@@ -34,7 +34,7 @@ export function OverseerrMediaDisplay(props: any) {
|
|||||||
poster: `https://image.tmdb.org/t/p/w600_and_h900_bestv2/${media.posterPath}`,
|
poster: `https://image.tmdb.org/t/p/w600_and_h900_bestv2/${media.posterPath}`,
|
||||||
seasonNumber: media.mediaInfo?.seasons.length ?? undefined,
|
seasonNumber: media.mediaInfo?.seasons.length ?? undefined,
|
||||||
episodetitle: media.title ?? undefined,
|
episodetitle: media.title ?? undefined,
|
||||||
plexUrl: media.mediaInfo?.plexUrl ?? undefined,
|
plexUrl: media.mediaInfo?.plexUrl ?? media.mediaInfo?.mediaUrl ?? undefined,
|
||||||
voteAverage: media.voteAverage?.toString() ?? undefined,
|
voteAverage: media.voteAverage?.toString() ?? undefined,
|
||||||
overseerrResult: media,
|
overseerrResult: media,
|
||||||
type: 'overseer',
|
type: 'overseer',
|
||||||
@@ -186,12 +186,12 @@ export function MediaDisplay({ media }: { media: IMedia }) {
|
|||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Group grow>
|
<Group grow>
|
||||||
{(media.plexUrl || media.mediaUrl) && (
|
{media.plexUrl && (
|
||||||
<Button
|
<Button
|
||||||
component="a"
|
component="a"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
href={media.plexUrl ?? media.mediaUrl}
|
href={media.plexUrl}
|
||||||
size="sm"
|
size="sm"
|
||||||
rightIcon={<IconPlayerPlay size={15} />}
|
rightIcon={<IconPlayerPlay size={15} />}
|
||||||
>
|
>
|
||||||
|
|||||||
1
src/modules/overseerr/SearchResult.d.ts
vendored
1
src/modules/overseerr/SearchResult.d.ts
vendored
@@ -53,6 +53,7 @@ export interface MediaInfo {
|
|||||||
seasons: any[];
|
seasons: any[];
|
||||||
plexUrl: string;
|
plexUrl: string;
|
||||||
serviceUrl: string;
|
serviceUrl: string;
|
||||||
|
mediaUrl?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum MediaType {
|
export enum MediaType {
|
||||||
|
|||||||
Reference in New Issue
Block a user