Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/treyturner/sabnzbd-sanitizer
Clean SABnzbd history and warnings of content you'd prefer to keep private
https://github.com/treyturner/sabnzbd-sanitizer
Last synced: about 7 hours ago
JSON representation
Clean SABnzbd history and warnings of content you'd prefer to keep private
- Host: GitHub
- URL: https://github.com/treyturner/sabnzbd-sanitizer
- Owner: treyturner
- Created: 2022-07-04T04:11:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T22:53:56.000Z (7 months ago)
- Last Synced: 2024-04-18T23:42:20.817Z (7 months ago)
- Language: TypeScript
- Size: 34.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sabnzbd-sanitizer
This tiny Node app polls your SABnzbd history via API and removes one or more categories of NZBs.
It will poll often after finding something that requires cleaning, and slow down in periods of inactivity.
Additionally, by default, the script will clear **ALL** warnings/errors if **ANY** are found to include the name of the specified categories, as this might leak information about those categories. For this feature to work as expected, it is recommended to download the specified categories into file paths that include the category name. This behavior can be disabled by setting `CLEAR_WARNINGS` to `false`.
## Configuration
Requires setting environment variables for which a default is not supplied.
| Environment Variable | Description | Example | Default |
| -------------------- | ---------------------------------------------------------- | ---------------------------------- | ---------- |
| `API_URL` | The full URL to your SABnzbd **API** | `http://192.168.1.100:8080/api` | No default |
| `API_KEY` | Your API key | `3c64cc70468348138aa2964d257a7108` | No default |
| `CATEGORIES` | A comma-separated list of categories to purge from history | `movies,music` | No default |
| `MAX_POLL_SECS` | Max number of seconds between checks | `60` | `300` |
| `CLEAR_WARNINGS` | Clear all warnings if any contain the name of a category | `false` | `true` |
| `LOG_NAMES` | Optionally log NZB names for debugging | `true` | `false` |## Usage
I recommend you add the service to your SABnzbd stack's `docker-compose.yml`:
```
sanitizer:
image: treyturner/sabnzbd-sanitizer
container_name: sabnzbd_sanitizer
environment:
- API_URL=http://your.ip.address.here:8080/api
- API_KEY=your_sabnzbd_api_key
- CATEGORIES=yyy
restart: unless-stopped
```If you aren't using docker-compose, you can start a container without it:
```
docker run -d --rm \
-e API_URL=http://your.ip.address.here:8080/api \
-e API_KEY=your_sabnzbd_api_key \
-e CATEGORIES=yyy \
treyturner/sabnzbd-sanitizer
```