mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(clients): add Readarr support (#490)
* Add initial Readarr support * Readarr working with MaM * feat(clients): readarr add tests
This commit is contained in:
parent
b7d2161fdb
commit
71d0424b61
16 changed files with 626 additions and 6 deletions
|
@ -205,6 +205,11 @@ export const DownloadClientTypeOptions: RadioFieldsetOption[] = [
|
|||
label: "Whisparr",
|
||||
description: "Send to Whisparr and let it decide",
|
||||
value: "WHISPARR"
|
||||
},
|
||||
{
|
||||
label: "Readarr",
|
||||
description: "Send to Readarr and let it decide",
|
||||
value: "READARR"
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -217,7 +222,8 @@ export const DownloadClientTypeNameMap: Record<DownloadClientType | string, stri
|
|||
"RADARR": "Radarr",
|
||||
"SONARR": "Sonarr",
|
||||
"LIDARR": "Lidarr",
|
||||
"WHISPARR": "Whisparr"
|
||||
"WHISPARR": "Whisparr",
|
||||
"READARR": "Readarr"
|
||||
};
|
||||
|
||||
export const ActionTypeOptions: RadioFieldsetOption[] = [
|
||||
|
@ -233,7 +239,8 @@ 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" }
|
||||
{ label: "Whisparr", description: "Send to Whisparr and let it decide", value: "WHISPARR" },
|
||||
{ label: "Readarr", description: "Send to Readarr and let it decide", value: "READARR" }
|
||||
];
|
||||
|
||||
export const ActionTypeNameMap = {
|
||||
|
@ -249,7 +256,8 @@ export const ActionTypeNameMap = {
|
|||
"RADARR": "Radarr",
|
||||
"SONARR": "Sonarr",
|
||||
"LIDARR": "Lidarr",
|
||||
"WHISPARR": "Whisparr"
|
||||
"WHISPARR": "Whisparr",
|
||||
"READARR": "Readarr"
|
||||
};
|
||||
|
||||
export const ActionContentLayoutOptions: SelectGenericOption<ActionContentLayout>[] = [
|
||||
|
|
|
@ -211,7 +211,8 @@ export const componentMap: componentMapType = {
|
|||
RADARR: <FormFieldsArr/>,
|
||||
SONARR: <FormFieldsArr/>,
|
||||
LIDARR: <FormFieldsArr/>,
|
||||
WHISPARR: <FormFieldsArr/>
|
||||
WHISPARR: <FormFieldsArr/>,
|
||||
READARR: <FormFieldsArr/>
|
||||
};
|
||||
|
||||
function FormFieldsRulesBasic() {
|
||||
|
|
|
@ -385,6 +385,7 @@ const TypeForm = ({ action, idx, clients }: TypeFormProps) => {
|
|||
case "SONARR":
|
||||
case "LIDARR":
|
||||
case "WHISPARR":
|
||||
case "READARR":
|
||||
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
|
@ -7,7 +7,8 @@ type DownloadClientType =
|
|||
"RADARR" |
|
||||
"SONARR" |
|
||||
"LIDARR" |
|
||||
"WHISPARR";
|
||||
"WHISPARR" |
|
||||
"READARR";
|
||||
|
||||
// export enum DownloadClientTypeEnum {
|
||||
// QBITTORRENT = "QBITTORRENT",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue