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

@@ -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',
});
}