feat(clients): add Readarr support (#490)

* Add initial Readarr support

* Readarr working with MaM

* feat(clients): readarr add tests
This commit is contained in:
voltron4lyfe 2022-10-14 10:56:42 -07:00 committed by GitHub
parent b7d2161fdb
commit 71d0424b61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 626 additions and 6 deletions

View file

@ -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>[] = [

View file

@ -211,7 +211,8 @@ export const componentMap: componentMapType = {
RADARR: <FormFieldsArr/>,
SONARR: <FormFieldsArr/>,
LIDARR: <FormFieldsArr/>,
WHISPARR: <FormFieldsArr/>
WHISPARR: <FormFieldsArr/>,
READARR: <FormFieldsArr/>
};
function FormFieldsRulesBasic() {

View file

@ -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

View file

@ -7,7 +7,8 @@ type DownloadClientType =
"RADARR" |
"SONARR" |
"LIDARR" |
"WHISPARR";
"WHISPARR" |
"READARR";
// export enum DownloadClientTypeEnum {
// QBITTORRENT = "QBITTORRENT",