✨ Add Jellyseerr full support
This commit is contained in:
@@ -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} />}
|
||||
>
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user