Skip to content

Commit e643040

Browse files
authored
Merge pull request #6 from varthe/readme-and-flip-approve
Default approve to true and update quality_profile_id section in the README
2 parents eda31a9 + 3b6abc8 commit e643040

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,14 @@ Define your Radarr and Sonarr instances in this section. You can name the instan
6767

6868
- **`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).
6969
- **`root_folder`** (Required): The path to the root folder for the instance, as configured in its settings.
70-
- **`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.
71-
- **`approve`** (Optional): A flag to automatically approve the request. Recommended for smoother automation.
70+
- **`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 `<url>` with your arr instance's URL and `<api-key>` with its API key:
71+
```
72+
http://<url>/api/v3/qualityProfile?apiKey=<api-key>
73+
```
74+
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.
75+
- **`approve`** (Optional): Automatically approves requests by default. To disable, set this flag to `False` in the configuration.
7276
7377
![arrs](https://github.com/user-attachments/assets/a7a60d91-0f24-42a9-bbe1-ea4f1c945e6a)
74-
![quality_profiles](https://github.com/user-attachments/assets/ba3138ba-736e-4d7d-ac69-ec454656855e)
7578
7679
### Filters
7780

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const sendToInstances = async (instances, requestId, data) => {
173173
await applyConfig(requestId, postData)
174174
logger.info(`Configuration applied for request ID ${requestId} on instance "${item}"`)
175175

176-
if (instance.approve) {
176+
if (instance.approve ?? true) {
177177
await approveRequest(requestId)
178178
logger.info(`Request ID ${requestId} approved for instance "${item}"`)
179179
}

0 commit comments

Comments
 (0)