Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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 minutes

radarr:
- name: "radarr4k" # requried
hostPath: "https://radarr.mydomain.com" # required
apiKey: "xxxxxxxxxxx" # required
maxDays: 90 # optional if maxSize
maxSize: "2TB" # optional if maxDays

sonarr:
- 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 ?