Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrenard/cleanarr
A small utility tasked to automatically clean radarr and sonarr files over time
https://github.com/hrenard/cleanarr
Last synced: 4 months ago
JSON representation
A small utility tasked to automatically clean radarr and sonarr files over time
- Host: GitHub
- URL: https://github.com/hrenard/cleanarr
- Owner: hrenard
- License: gpl-3.0
- Created: 2021-05-03T17:20:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T02:02:00.000Z (over 1 year ago)
- Last Synced: 2024-05-21T12:46:51.726Z (9 months ago)
- Language: Go
- Homepage:
- Size: 128 KB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-arr - hrenard/Cleanarr - A small utility tasked to automatically clean radarr and sonarr files over time. (Complimenting Apps)
README
# Cleanarr
A small utility tasked to automatically clean radarr and sonarr files over time.
The idea is to have a "rolling" media library where old media is deleted either because the disk quota is exceeded or because it has been there too long.
## Usage
### Configuration
```yml
#config.yml
interval: 1 # optional, check every minutesradarr:
- name: "radarr4k" # requried
hostPath: "https://radarr.mydomain.com" # required
apiKey: "xxxxxxxxxxx" # required
maxDays: 90 # optional if maxSize
maxSize: "2TB" # optional if maxDayssonarr:
- name: "sonarr" # requried
hostPath: "https://sonarr.mydomain.com" # required
apiKey: "xxxxxxxxxxx" # required
maxDays: 90 # optional if maxSize
maxSize: "2TB" # optional if maxDays
```### Docker
```shell
$ docker run -v $PWD/config.yml:/config.yml ghcr.io/hrenard/cleanarr
```## Roadmap
- [ ] Radarr
- [x] Days policy
- [x] Size policy
- [ ] Quantity policy
- [ ] Sonarr
- [x] Days policy
- [x] Size policy
- [ ] Quantity policy
- [ ] Unmonitor season when all episodes are unmonitored ?
- [ ] Remove serie when all episodes are unmonitored ?