Skip to content

Commit 38c83fa

Browse files
committed
updated README
1 parent 1201c8c commit 38c83fa

File tree

1 file changed

+43
-17
lines changed

1 file changed

+43
-17
lines changed

README.md

Lines changed: 43 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ This tool is actively developed and still a work in progress, so using the `late
3636
- Mark the files that were found in the queue as **unwanted/skipped** if:
3737
- They **are listed in the blacklist**, or
3838
- They **are not included in the whitelist**.
39+
- If **all files** of a download **are unwanted**:
40+
- It will be removed from the *arr's queue and blocked.
41+
- It will be deleted from the download client.
42+
- A new search will be triggered for the *arr item.
3943
2. **Queue cleaner** will:
40-
- Run every 5 minutes (or configured cron).
44+
- Run every 5 minutes (or configured cron, or right after `content blocker`).
4145
- Process all items in the *arr queue.
4246
- Check each queue item if it is **stalled (download speed is 0)**, **stuck in matadata downloading** or **failed to be imported**.
4347
- If it is, the item receives a **strike** and will continue to accumulate strikes every time it meets any of these conditions.
@@ -64,8 +68,8 @@ This tool is actively developed and still a work in progress, so using the `late
6468

6569
## Using cleanuperr's blocklist (works with all supported download clients)
6670

67-
1. Set both `QUEUECLEANER_ENABLED` and `CONTENTBLOCKER_ENABLED` to `true` in your environment variables.
68-
2. Configure and enable either a **blacklist** or a **whitelist** as described in the [Environment variables](#Environment-variables) section.
71+
1. Set both `QUEUECLEANER__ENABLED` and `CONTENTBLOCKER__ENABLED` to `true` in your environment variables.
72+
2. Configure and enable either a **blacklist** or a **whitelist** as described in the [Arr variables](#Arr-variables) section.
6973
3. Once configured, cleanuperr will perform the following tasks:
7074
- Execute the **content blocker** job, as explained in the [How it works](#how-it-works) section.
7175
- Execute the **queue cleaner** job, as explained in the [How it works](#how-it-works) section.
@@ -95,11 +99,6 @@ services:
9599
- QUEUECLEANER__STALLED_MAX_STRIKES=5
96100
97101
- CONTENTBLOCKER__ENABLED=true
98-
- CONTENTBLOCKER__BLACKLIST__ENABLED=true
99-
- CONTENTBLOCKER__BLACKLIST__PATH=https://raw.githubusercontent.com/flmorg/cleanuperr/refs/heads/main/blacklist
100-
# OR
101-
# - CONTENTBLOCKER__WHITELIST__ENABLED=true
102-
# - CONTENTBLOCKER__WHITELIST__PATH=https://raw.githubusercontent.com/flmorg/cleanuperr/refs/heads/main/whitelist
103102
104103
- DOWNLOAD_CLIENT=qBittorrent
105104
- QBITTORRENT__URL=http://localhost:8080
@@ -117,18 +116,24 @@ services:
117116
118117
- SONARR__ENABLED=true
119118
- SONARR__SEARCHTYPE=Episode
119+
- SONARR__BLOCK__TYPE=blacklist
120+
- SONARR__BLOCK__PATH=https://example.com/path/to/file.txt
120121
- SONARR__INSTANCES__0__URL=http://localhost:8989
121122
- SONARR__INSTANCES__0__APIKEY=secret1
122123
- SONARR__INSTANCES__1__URL=http://localhost:8990
123124
- SONARR__INSTANCES__1__APIKEY=secret2
124125
125126
- RADARR__ENABLED=true
127+
- RADARR__BLOCK__TYPE=blacklist
128+
- RADARR__BLOCK__PATH=https://example.com/path/to/file.txt
126129
- RADARR__INSTANCES__0__URL=http://localhost:7878
127130
- RADARR__INSTANCES__0__APIKEY=secret3
128131
- RADARR__INSTANCES__1__URL=http://localhost:7879
129132
- RADARR__INSTANCES__1__APIKEY=secret4
130133
131134
- LIDARR__ENABLED=true
135+
- LIDARR__BLOCK__TYPE=blacklist
136+
- LIDARR__BLOCK__PATH=https://example.com/path/to/file.txt
132137
- LIDARR__INSTANCES__0__URL=http://radarr:8686
133138
- LIDARR__INSTANCES__0__APIKEY=secret5
134139
- LIDARR__INSTANCES__1__URL=http://radarr:8687
@@ -137,7 +142,11 @@ services:
137142
restart: unless-stopped
138143
```
139144

140-
### Environment variables
145+
## Environment variables
146+
147+
### General variables
148+
<details>
149+
<summary>Click here</summary>
141150

142151
| Variable | Required | Description | Default value |
143152
|---|---|---|---|
@@ -155,11 +164,14 @@ services:
155164
| QUEUECLEANER__STALLED_MAX_STRIKES | No | After how many strikes should a stalled download be removed<br>0 means never | 0 |
156165
|||||
157166
| CONTENTBLOCKER__ENABLED | No | Enable or disable the content blocker | false |
158-
| CONTENTBLOCKER__BLACKLIST__ENABLED | Yes if content blocker is enabled and whitelist is not enabled | Enable or disable the blacklist | false |
159-
| CONTENTBLOCKER__BLACKLIST__PATH | Yes if blacklist is enabled | Path to the blacklist (local file or url)<br>Needs to be json compatible | empty |
160-
| CONTENTBLOCKER__WHITELIST__ENABLED | Yes if content blocker is enabled and blacklist is not enabled | Enable or disable the whitelist | false |
161-
| CONTENTBLOCKER__WHITELIST__PATH | Yes if whitelist is enabled | Path to the whitelist (local file or url)<br>Needs to be json compatible | empty |
162-
|||||
167+
</details>
168+
169+
### Download client variables
170+
<details>
171+
<summary>Click here</summary>
172+
173+
| Variable | Required | Description | Default value |
174+
|---|---|---|---|
163175
| DOWNLOAD_CLIENT | No | Download client that is used by *arrs<br>Can be `qbittorrent`, `deluge` or `transmission` | `qbittorrent` |
164176
| QBITTORRENT__URL | No | qBittorrent instance url | http://localhost:8112 |
165177
| QBITTORRENT__USERNAME | No | qBittorrent user | empty |
@@ -171,19 +183,33 @@ services:
171183
| TRANSMISSION__URL | No | Transmission instance url | http://localhost:9091 |
172184
| TRANSMISSION__USERNAME | No | Transmission user | empty |
173185
| TRANSMISSION__PASSWORD | No | Transmission password | empty |
174-
|||||
186+
</details>
187+
188+
### Arr variables
189+
<details>
190+
<summary>Click here</summary>
191+
192+
| Variable | Required | Description | Default value |
193+
|---|---|---|---|
175194
| SONARR__ENABLED | No | Enable or disable Sonarr cleanup | true |
195+
| SONARR__BLOCK__TYPE | No | Block type<br>Can be `blacklist` or `whitelist` | `blacklist` |
196+
| SONARR__BLOCK__PATH | No | Path to the blocklist (local file or url)<br>Needs to be json compatible | empty |
176197
| SONARR__SEARCHTYPE | No | What to search for after removing a queue item<br>Can be `Episode`, `Season` or `Series` | `Episode` |
177198
| SONARR__INSTANCES__0__URL | No | First Sonarr instance url | http://localhost:8989 |
178199
| SONARR__INSTANCES__0__APIKEY | No | First Sonarr instance API key | empty |
179200
|||||
180201
| RADARR__ENABLED | No | Enable or disable Radarr cleanup | false |
202+
| RADARR__BLOCK__TYPE | No | Block type<br>Can be `blacklist` or `whitelist` | `blacklist` |
203+
| RADARR__BLOCK__PATH | No | Path to the blocklist (local file or url)<br>Needs to be json compatible | empty |
181204
| RADARR__INSTANCES__0__URL | No | First Radarr instance url | http://localhost:8989 |
182205
| RADARR__INSTANCES__0__APIKEY | No | First Radarr instance API key | empty |
183206
|||||
184207
| LIDARR__ENABLED | No | Enable or disable LIDARR cleanup | false |
208+
| LIDARR__BLOCK__TYPE | No | Block type<br>Can be `blacklist` or `whitelist` | `blacklist` |
209+
| LIDARR__BLOCK__PATH | No | Path to the blocklist (local file or url)<br>Needs to be json compatible | empty |
185210
| LIDARR__INSTANCES__0__URL | No | First LIDARR instance url | http://localhost:8989 |
186211
| LIDARR__INSTANCES__0__APIKEY | No | First LIDARR instance API key | empty |
212+
</details>
187213

188214
#
189215
### To be noted
@@ -198,12 +224,12 @@ example* // file name starts with "example"
198224
example // file name is exactly the word "example"
199225
regex:<ANY_REGEX> // regex that needs to be marked at the start of the line with "regex:"
200226
```
201-
1. Multiple Sonarr/Radarr/Lidarr instances can be specified using this format, where `<NUMBER>` starts from 0:
227+
4. Multiple Sonarr/Radarr/Lidarr instances can be specified using this format, where `<NUMBER>` starts from `0`:
202228
```
203229
SONARR__INSTANCES__<NUMBER>__URL
204230
SONARR__INSTANCES__<NUMBER>__APIKEY
205231
```
206-
232+
5. [This blacklist](https://raw.githubusercontent.com/flmorg/cleanuperr/refs/heads/main/blacklist) and [this whitelist](https://raw.githubusercontent.com/flmorg/cleanuperr/refs/heads/main/whitelist) can be used for Sonarr and Radarr, but they are not suitable for other *arrs.
207233
#
208234

209235
### Binaries (if you're not using Docker)

0 commit comments

Comments
 (0)