🐛 Fix Jellyseerr request

This commit is contained in:
ajnart
2022-08-09 15:04:39 +02:00
parent a1d3fc66da
commit 6f0902d473
2 changed files with 4 additions and 3 deletions

View File

@@ -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} />}
> >

View File

@@ -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 {