Problems with AMC-Script with Qbitorrent
Posted: 21 Mar 2025, 18:07
Hi!
I’m having some issues with the script. Ever since I migrated my Docker to a faster volume, I’ve been experiencing problems with the script
Let me give you some context.
I have the Docker https://github.com/imTHAI/docker-qbittorrent-filebot set up on my Synology DS920+, and everything was working fine until I decided to migrate it to another volume (I wanted all the containers and files to be on an SSD). When I migrated, I obviously changed the PATHs to point to the new location. However, when I download a file, the script throws an error.
This is the script I’m using:
Of course, it is selected in qBittorrent -> Run external program on torrent finished
Here’s the container configuration:
As I mentioned before, I migrated the "docker" directory from "/volume2/docker/qbittorrent-filebot" to "/volume3/docker/qbittorrent-filebot". That’s the only change I made, and it was working perfectly before.
Sorry for my poor English and thanks in advance
.

I’m having some issues with the script. Ever since I migrated my Docker to a faster volume, I’ve been experiencing problems with the script
Let me give you some context.
I have the Docker https://github.com/imTHAI/docker-qbittorrent-filebot set up on my Synology DS920+, and everything was working fine until I decided to migrate it to another volume (I wanted all the containers and files to be on an SSD). When I migrated, I obviously changed the PATHs to point to the new location. However, when I download a file, the script throws an error.
Code: Select all
Run script [fn:amc] at [Fri Mar 21 16:43:19 GMT 2025]
Parameter: excludeList = /data/filebot/amc-exlude-list.txt
Parameter: unsorted = y
Parameter: music = n
Parameter: musicFormat = /media/{plex}
Parameter: artwork = n
Parameter: movieFormat = /media/{plex}
Parameter: seriesFormat = /media/{plex}
Parameter: animeFormat = /media/{plex}
Parameter: ut_kind = multi
Parameter: ut_dir = /downloads/Dr.STONE.S04E11.Episode.11.1080p.NF.WEB-DL.JPN.AAC2.0.H.264.MSubs-ToonsHub.mkv
Parameter: ut_title =
Parameter: ut_label =
Parameter: gmail = *****
Parameter: mailto = *****
Parameter: reportError = y
Parameter: clean = y
Argument[0]: File does not exist: /run/s6-rc:s6-rc-init:JpdCGM/servicedirs/svc-qbittorrent/n
Argument[1]: File does not exist: /run/s6-rc:s6-rc-init:JpdCGM/servicedirs/svc-qbittorrent/n
Argument[2]: File does not exist: /run/s6-rc:s6-rc-init:JpdCGM/servicedirs/svc-qbittorrent/n
Invalid usage: input file path must be passed via script parameters [kind:multi, dir:/downloads/Dr.STONE.S04E11.Episode.11.1080p.NF.WEB-DL.JPN.AAC2.0.H.264.MSubs-ToonsHub.mkv, title:null, label:null] or via file arguments [/run/s6-rc:s6-rc-init:JpdCGM/servicedirs/svc-qbittorrent/n, /run/s6-rc:s6-rc-init:JpdCGM/servicedirs/svc-qbittorrent/n, /run/s6-rc:s6-rc-init:JpdCGM/servicedirs/svc-qbittorrent/n] but not both
Abort (×_×)
Code: Select all
#!/bin/bash
# Future feature
#if [ ! -f /filebot/osdb.loggedin ]; then
# printf "$OSDB_USER\n$OSDB_PASSWD\n" | /filebot/filebot.sh -script fn:configure
# touch /filebot/osdb.loggedin
#fi
# Set this to 1 if you want to customize the fb.sh script. So it won't be reset at restart.
custom=1
/filebot/filebot.sh \
-script fn:amc \
--output /media \
"${EXTRA_FILEBOT_PARAM}" \
"${EXTRA_FILEBOT_PARAM}" \
"${EXTRA_FILEBOT_PARAM}" \
--lang "$FILEBOT_LANG" \
--action "$FILEBOT_ACTION" \
--conflict "$FILEBOT_CONFLICT" \
--log-file /data/filebot/filebot.log \
--def excludeList=/data/filebot/amc-exlude-list.txt \
-non-strict \
--def \
unsorted=y \
music="$FILEBOT_PROCESS_MUSIC" \
musicFormat=/media/"$MUSIC_FORMAT" \
artwork="$FILEBOT_ARTWORK" \
movieFormat=/media/"$MOVIE_FORMAT" \
seriesFormat=/media/"$SERIE_FORMAT" \
animeFormat=/media/"$SERIE_FORMAT" \
ut_kind=multi \
ut_dir="$1" \
ut_title="$2" \
ut_label="$3" \
gmail=*****:***** \
mailto=********** \
reportError=y \
clean=y
Code: Select all
/data/filebot/fb.sh "%F" "%N" "%L"
Code: Select all
- "FILES_CHECK_PERM=n"
- "FILEBOT_LANG=es"
- "FILEBOT_CONFLICT=auto"
- "FILEBOT_ACTION=copy"
- "FILEBOT_ARTWORK=n"
- "FILEBOT_PROCESS_MUSIC=n"
- "MUSIC_FORMAT={plex}"
- "MOVIE_FORMAT={plex}"
- "SERIE_FORMAT={plex}"
- "ANIME_FORMAT={plex}"
- "FILEBOT_OPTS=-Dnet.filebot.archive.unrar=/usr/bin/unrar"
volumes:
- "/volume2/downloads:/downloads"
- "/volume2/media:/media"
- "/volume3/docker/qbittorrent-filebot:/data"
Sorry for my poor English and thanks in advance
