feat: add usenet support (#543)

* feat(autobrr): implement usenet support

* feat(sonarr): implement usenet support

* feat(radarr): implement usenet support

* feat(announce): implement usenet support

* announce: cast a line

* feat(release): prevent unknown protocol transfer

* release: lines for days.

* feat: add newznab and sabnzbd support

* feat: add category to sabnzbd

* feat(newznab): map categories

* feat(newznab): map categories

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
Kyle Sanderson 2023-03-04 11:27:18 -08:00 committed by GitHub
parent b2d93d50c5
commit 13a74f7cc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 1588 additions and 37 deletions

View file

@ -217,6 +217,7 @@ export interface RadioFieldsetOption {
label: string;
description: string;
value: ActionType;
type?: string;
}
export const DownloadClientTypeOptions: RadioFieldsetOption[] = [
@ -274,6 +275,12 @@ export const DownloadClientTypeOptions: RadioFieldsetOption[] = [
label: "Readarr",
description: "Send to Readarr and let it decide",
value: "READARR"
},
{
label: "Sabnzbd",
description: "Add nzbs directly to Sabnzbd",
value: "SABNZBD",
type: "nzb"
}
];
@ -288,7 +295,8 @@ export const DownloadClientTypeNameMap: Record<DownloadClientType | string, stri
"SONARR": "Sonarr",
"LIDARR": "Lidarr",
"WHISPARR": "Whisparr",
"READARR": "Readarr"
"READARR": "Readarr",
"SABNZBD": "Sabnzbd"
};
export const ActionTypeOptions: RadioFieldsetOption[] = [
@ -306,7 +314,8 @@ export const ActionTypeOptions: RadioFieldsetOption[] = [
{ 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: "Readarr", description: "Send to Readarr and let it decide", value: "READARR" }
{ label: "Readarr", description: "Send to Readarr and let it decide", value: "READARR" },
{ label: "Sabnzbd", description: "Add to Sabnzbd", value: "SABNZBD" }
];
export const ActionTypeNameMap = {
@ -324,7 +333,8 @@ export const ActionTypeNameMap = {
"SONARR": "Sonarr",
"LIDARR": "Lidarr",
"WHISPARR": "Whisparr",
"READARR": "Readarr"
"READARR": "Readarr",
"SABNZBD": "Sabnzbd"
};
export const ActionContentLayoutOptions: SelectGenericOption<ActionContentLayout>[] = [