mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(downloadclient): set downloadClientId for arr clients (#1081)
feat(downloadclient): arrs set downloadClientId
This commit is contained in:
parent
1bfbe38335
commit
0d3e10f094
22 changed files with 154 additions and 66 deletions
|
@ -116,6 +116,8 @@ function FormFieldsArr() {
|
|||
<PasswordFieldWide name="settings.basic.password" label="Password" />
|
||||
</>
|
||||
)}
|
||||
|
||||
<NumberFieldWide name="settings.external_download_client_id" label="Download Client ID" tooltip={<div><p>Specify what client the arr should use by default. Can be overridden per filter action. You can find the id in the arr by looking at the network responses for download clients.</p></div>} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -71,6 +71,7 @@ export function FilterActions({ filter, values }: FilterActionsProps) {
|
|||
webhook_method: "",
|
||||
webhook_data: "",
|
||||
webhook_headers: [],
|
||||
external_download_client_id: 0,
|
||||
client_id: 0
|
||||
};
|
||||
|
||||
|
@ -542,6 +543,11 @@ const TypeForm = ({ action, idx, clients }: TypeFormProps) => {
|
|||
action={action}
|
||||
clients={clients}
|
||||
/>
|
||||
<NumberField
|
||||
name={`actions.${idx}.external_download_client_id`}
|
||||
label="Override download client id for arr"
|
||||
tooltip={<p>Override Download client Id from the one set in Clients. Useful if you have multiple clients inside the arr.</p>}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
case "SABNZBD":
|
||||
|
|
1
web/src/types/Download.d.ts
vendored
1
web/src/types/Download.d.ts
vendored
|
@ -45,6 +45,7 @@ interface DownloadClientSettings {
|
|||
apikey?: string;
|
||||
basic?: DownloadClientBasicAuth;
|
||||
rules?: DownloadClientRules;
|
||||
external_download_client_id?: number;
|
||||
}
|
||||
|
||||
interface DownloadClient {
|
||||
|
|
3
web/src/types/Filter.d.ts
vendored
3
web/src/types/Filter.d.ts
vendored
|
@ -102,8 +102,9 @@ interface Action {
|
|||
webhook_method: string;
|
||||
webhook_data: string,
|
||||
webhook_headers: string[];
|
||||
filter_id?: number;
|
||||
external_download_client_id?: number;
|
||||
client_id?: number;
|
||||
filter_id?: number;
|
||||
}
|
||||
|
||||
type ActionContentLayout = "ORIGINAL" | "SUBFOLDER_CREATE" | "SUBFOLDER_NONE";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue