Add Jellyseerr full support

This commit is contained in:
ajnart
2022-08-09 13:26:55 +02:00
parent c157c94d95
commit 67a274804f
7 changed files with 11 additions and 8 deletions

View File

@@ -186,12 +186,12 @@ export function MediaDisplay({ media }: { media: IMedia }) {
</Text>
</Stack>
<Group grow>
{media.plexUrl && (
{(media.plexUrl || media.mediaUrl) && (
<Button
component="a"
target="_blank"
variant="outline"
href={media.plexUrl}
href={media.plexUrl ?? media.mediaUrl}
size="sm"
rightIcon={<IconPlayerPlay size={15} />}
>

View File

@@ -4,7 +4,7 @@ import { IModule } from '../ModuleTypes';
export const OverseerrModule: IModule = {
title: 'Overseerr',
description: 'Allows you to search and add media from Overseerr',
description: 'Allows you to search and add media from Overseerr/Jellyseerr',
icon: IconEyeglass,
component: OverseerrMediaDisplay,
};

View File

@@ -38,7 +38,7 @@ export default function SearchBar(props: any) {
const { config } = useConfig();
const isModuleEnabled = config.modules?.[SearchModule.title]?.enabled ?? false;
const isOverseerrEnabled = config.modules?.[OverseerrModule.title]?.enabled ?? false;
const OverseerrService = config.services.find((service) => service.type === 'Overseerr');
const OverseerrService = config.services.find((service) => service.type === 'Overseerr' || service.type === 'Jellyseerr');
const queryUrl = config.settings.searchUrl ?? 'https://www.google.com/search?q=';
const [OverseerrResults, setOverseerrResults] = useState<any[]>([]);
@@ -61,7 +61,7 @@ export default function SearchBar(props: any) {
if (OverseerrService === undefined && isOverseerrEnabled) {
showNotification({
title: 'Overseerr integration',
message: 'Module enabled but no service is configured with the type "Overseerr"',
message: 'Module enabled but no service is configured with the type "Overseerr" / "Jellyseerr"',
color: 'red',
});
}