aetaric / checkrr

Checkrr Scans your library files for corrupt media and replace the files via sonarr and radarr
MIT License
184 stars 8 forks source link

Multiple media paths to scan #12

Closed ianmagnone closed 1 year ago

ianmagnone commented 1 year ago

Is there a way to configure multiple media paths to scan so that checkrr will run them sequentially? Can I just add them all to the Docker Compose file?

I have my media stored like this:

/media/Movies /media/TV_Shows

but I have some other folders in there that shouldn't be scanned like:

/media/Downloads

aetaric commented 1 year ago

Yes. there's a checkpath directive in the config. you can either do this in the config:

checkpath:
  - /media/Movies
  - /media/TV_Shows

or, you just mount the folders you want via docker compose

---
version: "3"

services:
  checkrr:
    container_name: checkrr
    image: aetaric/checkrr:latest
    command: check
    volumes:
      - /path/to/checkrr/config/checkrr.yaml:/etc/checkrr.yaml
      - /path/to/checkrr/config/checkrr.db:/checkrr.db
      - /media/TV_Shows:/media/TV_Shows
      - /media/Movies:/media/Movies
    restart: on-failure
ianmagnone commented 1 year ago

I have the folders mounted in the docker compose but it gives me the following error in the logs when trying to run it.

Using config file: /etc/checkrr.yaml
Error: required flag(s) "checkPath" not set

I have the following in my checkrr.yaml file but even fully commenting out the checkPath item results in the same error.

checkpath: 
  # - "./test"
database: ./checkrr.db
processradarr: false
processsonarr: false

Ideally I could set the paths in just the docker compose to configure in one place but I'll play with setting it in both so I can start running the tool.

aetaric commented 1 year ago

you could set it in the compose, just add --checkPath /media/Movies to the command option... you can add as many of those as needed.