Code: Select all
---
version: "2.1"
services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent
container_name: qbittorrent
environment:
- PUID=[myUID]
- PGID=[myGID]
- TZ=Europe/Stockholm
- WEBUI_PORT=8080
volumes:
- [myConfigFolder]:/config
- [myMoviesFodler]:/movies
- [myTVShowsFolder]:/tv_shows
ports:
- 6881:6881
- 6881:6881/udp
- 8080:8080
restart: unless-stopped
\config\custom-scripts\test.sh
Code: Select all
#!\bin\bash
echo "Torrent name: $1, Content path: $2, Rooth path: $3, Save path: $4" > testNames.txt
But when I set up in the qBittorrent to run it after a torrent completed, nothing happens.
I set up the command like this:
Code: Select all
bash /config/custom-scripts/test.sh "%N" "%F" "%R" "%D"
Code: Select all
(N) 2023-02-04T19:06:45 - Torrent: [torrentName], running external program, command: bash /config/custom-scripts/test.sh "[torrentName]" "/movies/[torrentName]" "/movies/[torrentName]" "/movies"