nandyalu / trailarr

Trailarr is a Docker application to download and manage trailers for your Radarr and Sonarr libraries.
GNU General Public License v3.0
108 stars 7 forks source link

Confusion over the trailer folder #14

Closed davecburke closed 2 months ago

davecburke commented 2 months ago

I might be confused about how Trailarr works but I thought the aim of it is to create a Trailers folder in the show/movie folders. So if I had a path of /mnt/media/tv/my_tv_show that sonarr populates, Trailarr would create /mnt/media/tv/my_tv_show/Trailers/trailer.mkv for example. Trailarr is downloading trailers but storing then locally i.e ~/docker/trailarr/appdata/media/tv/Sunny/Trailers. This is my docker compose:

services:
  trailarr:
    image: nandyalu/trailarr:latest
    container_name: trailarr
    environment:
      - TZ=Australia/Melbourne
    ports:
      - 7889:7889
    volumes:
      - ./appdata:/data
      - /mnt/data/media/movies:/mnt/data/media/movies
      - /mnt/data/media/tv:/mnt/data/media/tv
    restart: on-failure

Thanks for any help

nandyalu commented 2 months ago

The volumes mapped for Trailarr should match with Radarr and/or Sonarr!

What are the actual volume mapping for Radarr/Sonarr, do they match with these?

volumes:
      - /mnt/data/media/movies:/mnt/data/media/movies
      - /mnt/data/media/tv:/mnt/data/media/tv
davecburke commented 2 months ago

Radarr is /mnt/data/media/movies and Sonarr is /mnt/data/media/tv so they do match. Is my assumption correct in my original question correct?

nandyalu commented 2 months ago

Can you open app in a browser, go to the movie/show where a trailer was downloaded to container folder and post a screenshot showing the media path and also the files (you can mask actual media files if you want)?

davecburke commented 2 months ago

trailarr trailarr2

nandyalu commented 2 months ago

App saves trailer to the Media folder, so can you post the screenshot showing path of that media?

davecburke commented 2 months ago
root@docker-test:/mnt/data/media# ls -la
total 20
drwxrwxrwx  5 nobody nogroup 4096 Jul 23 06:19 .
drwxrwxrwx  6 nobody nogroup 4096 Jul 23 06:19 ..
drwxrwxrwx 17 nobody nogroup 4096 Aug  7 09:07 books
drwxrwxrwx  3 nobody nogroup 4096 Jul 24 10:17 movies
drwxrwxrwx 16 nobody nogroup 4096 Aug  7 08:29 tv
nandyalu commented 2 months ago

Please post a screenshot of the media details page showing path like this: image

davecburke commented 2 months ago

trailarr3

nandyalu commented 2 months ago

Looks like there might be a problem with your compose config. Can you post you Radarr and Sonarr docker compose?

davecburke commented 2 months ago
services:
  radarr:
    image: lscr.io/linuxserver/radarr:latest
    container_name: radarr
    environment:
      - PUID=0
      - PGID=0
      - TZ=Australia/Melbourne
    volumes:
      - ./config:/config
      - /mnt/data:/data #optional
      # - /path/to/download-client-downloads:/downloads #optional
    ports:
      - 7878:7878
    restart: unless-stopped
services:
  sonarr:
    image: lscr.io/linuxserver/sonarr:latest
    container_name: sonarr
    environment:
      - PUID=0
      - PGID=0
      - TZ=Australia/Melbourne
    volumes:
      - ./config:/config
      - /mnt/data:/data #optional
      #- /mnt/media/Downloads:/data #optional
    ports:
      - 8989:8989
    restart: unless-stopped
nandyalu commented 2 months ago

you need to add the same volume mappings for media folders from your Radarr and Sonarr to Trailarr. However since both of them point to /data inside Radarr/Sonarr containers, this doesn't work.

If you had those mapped to some other folders than /data you would've been able to use 2 instances of Trailarr to make it work.

Based on an assumption

Based on media path from comment https://github.com/nandyalu/trailarr/issues/14#issuecomment-2277010853, I am assuming that your local folder paths are /mnt/data/media/movies and /mnt/data/media/tv. If that is the case then you can map use below docker compose to make it work!

services:
  trailarr:
    image: nandyalu/trailarr:latest
    container_name: trailarr
    environment:
      - TZ=Australia/Melbourne
    ports:
      - 7889:7889
    volumes:
      - ./appdata:/data
      - /mnt/data/media/movies:/data/media/movies
      - /mnt/data/media/tv:/data/media/tv
    restart: on-failure

or simply the volumes a little bit more like:

services:
  trailarr:
    image: nandyalu/trailarr:latest
    container_name: trailarr
    environment:
      - TZ=Australia/Melbourne
    ports:
      - 7889:7889
    volumes:
      - ./appdata:/data
      - /mnt/data/media:/data/media
    restart: on-failure
davecburke commented 2 months ago

That worked! Thanks do much for your help.