mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(clients): add whisparr (#218)
* feat(clients): add whisparr * feat: add client connection test
This commit is contained in:
parent
2f358473f3
commit
9d0ab6ea52
11 changed files with 338 additions and 3 deletions
|
@ -177,6 +177,11 @@ export const DownloadClientTypeOptions: RadioFieldsetOption[] = [
|
|||
description: "Send to Lidarr and let it decide",
|
||||
value: "LIDARR"
|
||||
},
|
||||
{
|
||||
label: "Whisparr",
|
||||
description: "Send to Whisparr and let it decide",
|
||||
value: "WHISPARR"
|
||||
},
|
||||
];
|
||||
|
||||
export const DownloadClientTypeNameMap: Record<DownloadClientType | string, string> = {
|
||||
|
@ -186,6 +191,7 @@ export const DownloadClientTypeNameMap: Record<DownloadClientType | string, stri
|
|||
"RADARR": "Radarr",
|
||||
"SONARR": "Sonarr",
|
||||
"LIDARR": "Lidarr",
|
||||
"WHISPARR": "Whisparr",
|
||||
};
|
||||
|
||||
export const ActionTypeOptions: RadioFieldsetOption[] = [
|
||||
|
@ -199,6 +205,7 @@ export const ActionTypeOptions: RadioFieldsetOption[] = [
|
|||
{label: "Radarr", description: "Send to Radarr and let it decide", value: "RADARR"},
|
||||
{label: "Sonarr", description: "Send to Sonarr and let it decide", value: "SONARR"},
|
||||
{label: "Lidarr", description: "Send to Lidarr and let it decide", value: "LIDARR"},
|
||||
{label: "Whisparr", description: "Send to Whisparr and let it decide", value: "WHISPARR"},
|
||||
];
|
||||
|
||||
export const ActionTypeNameMap = {
|
||||
|
@ -212,6 +219,7 @@ export const ActionTypeNameMap = {
|
|||
"RADARR": "Radarr",
|
||||
"SONARR": "Sonarr",
|
||||
"LIDARR": "Lidarr",
|
||||
"WHISPARR": "Whisparr",
|
||||
};
|
||||
|
||||
export const PushStatusOptions: any[] = [
|
||||
|
|
|
@ -103,6 +103,7 @@ export const componentMap: any = {
|
|||
RADARR: <FormFieldsArr />,
|
||||
SONARR: <FormFieldsArr />,
|
||||
LIDARR: <FormFieldsArr />,
|
||||
WHISPARR: <FormFieldsArr />,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -849,6 +849,7 @@ function FilterActionsItem({ action, clients, idx, remove }: FilterActionsItemPr
|
|||
case "RADARR":
|
||||
case "SONARR":
|
||||
case "LIDARR":
|
||||
case "WHISPARR":
|
||||
return (
|
||||
<div className="mt-6 grid grid-cols-12 gap-6">
|
||||
<DownloadClientSelect
|
||||
|
|
3
web/src/types/Download.d.ts
vendored
3
web/src/types/Download.d.ts
vendored
|
@ -4,7 +4,8 @@ type DownloadClientType =
|
|||
'DELUGE_V2' |
|
||||
'RADARR' |
|
||||
'SONARR' |
|
||||
'LIDARR';
|
||||
'LIDARR' |
|
||||
'WHISPARR';
|
||||
|
||||
interface DownloadClientRules {
|
||||
enabled: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue