From bf366534e07e7ae26ac440b1220c19e7a0570d86 Mon Sep 17 00:00:00 2001 From: varthe Date: Tue, 10 Dec 2024 08:09:19 +0000 Subject: [PATCH 1/2] updated quality_profile_id and approve sections in the README --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a76e50..4f4bcaf 100644 --- a/README.md +++ b/README.md @@ -67,11 +67,14 @@ Define your Radarr and Sonarr instances in this section. You can name the instan - **`server_id`** (Required): The ID of the instance as shown in **Settings -> Services** in Overseerr. IDs start at 0 and increment sequentially from left to right (see image below). - **`root_folder`** (Required): The path to the root folder for the instance, as configured in its settings. -- **`quality_profile_id`** (Optional): The ID of the quality profile. IDs start at 1 and increment as you move down the list in the instance's settings dropdown (see image below). If not provided, the default profile set in the instance's settings will be used. -- **`approve`** (Optional): A flag to automatically approve the request. Recommended for smoother automation. +- **`quality_profile_id`** (Optional): Overrides the default quality profile set in Overseerr. If not provided, the default profile will be used. To find the profile ID, open your browser and use the following URL, replacing `` with your arr instance's URL and `` with its API key: + ``` + http:///api/v3/qualityProfile?apiKey= + ``` + This returns a JSON response listing all available quality profiles and their IDs. The ID can be found at the very bottom of the response. +- **`approve`** (Optional): Automatically approves requests by default. To disable, set this flag to `False` in the configuration. ![arrs](https://github.com/user-attachments/assets/a7a60d91-0f24-42a9-bbe1-ea4f1c945e6a) -![quality_profiles](https://github.com/user-attachments/assets/ba3138ba-736e-4d7d-ac69-ec454656855e) ### Filters From 3b6abc864415d30fc56a70d92c92c761c6502382 Mon Sep 17 00:00:00 2001 From: varthe Date: Tue, 10 Dec 2024 08:16:02 +0000 Subject: [PATCH 2/2] default approve to true --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 0529335..083c9b3 100644 --- a/main.js +++ b/main.js @@ -173,7 +173,7 @@ const sendToInstances = async (instances, requestId, data) => { await applyConfig(requestId, postData) logger.info(`Configuration applied for request ID ${requestId} on instance "${item}"`) - if (instance.approve) { + if (instance.approve ?? true) { await approveRequest(requestId) logger.info(`Request ID ${requestId} approved for instance "${item}"`) }