Page 1 of 1

Unraid: Sabnzbd + Filebot docker. Script won't work. Please help.

Posted: March 10th, 2020, 10:01 am
by Bjur
Hi I hope someone can help. I've installed Linuxserver Sabnzbd docker and also Filebot Docker on Unraid. I want Sabnzbd to process this Filebot AMC:

/opt/filebot/filebot -script fn:amc /mnt/disks/WDC_WD30EZRX-00D8PB0_WD-WCC4N7VXZ3TR/downloads/complete/film --output /mnt/user/Film/ --action test -non-strict --conflict override --lang da --def "ut_label=movie" --def movieFormat="/mnt/user/Film/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}" --def artwork=y --def subtitles=da,en --log-file amc.log --def root=y --def clean=y



I've tried to convert it to this script for Sabnzbd but it gives me this error:

/mnt/disks/WDC_WD30EZRX-00D8PB0_WD-WCC4N7VXZ3TR/downloads/complete/scripts/test.sh: line 8: /opt/filebot/filebot: No such file or directory
/mnt/disks/WDC_WD30EZRX-00D8PB0_WD-WCC4N7VXZ3TR/downloads/complete/scripts/test.sh: line 21: --def: command not found





#!/bin/sh
or (tried both same error)
#!/bin/bash


# SABnzbd Post Processing Script - www.Filebot.net "AMC" Script

FILE_PATH=$1
FILE_NAME=$3

/opt/filebot/filebot -script \
fn:amc \
/mnt/disks/WDC_WD30EZRX-00D8PB0_WD-WCC4N7VXZ3TR/downloads/complete/film \
--output /mnt/user/Film/ \
--log-file amc.log \
--action move \
--conflict override -non-strict \
--lang da \
--def "ut_label=movie" \
--def movieFormat="/mnt/user/Film/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}" \
--def artwork=y \
--def subtitles=da,en \
--log-file amc.log \
--def clean=y \

Re: Unraid: Sabnzbd + Filebot docker. Script won't work. Please help.

Posted: March 10th, 2020, 11:16 am
by sander
Docker's goal is isolation ... which makes inateraction with other apps / containers ... hard.

Code: Select all

/mnt/disks/WDC_WD30EZRX-00D8PB0_WD-WCC4N7VXZ3TR/downloads/complete/scripts/test.sh: line 8: /opt/filebot/filebot: No such file or directory
So ... /opt/filebot/filebot is not there for the script / process / docker container that is running that script, so solve that.

Re: Unraid: Sabnzbd + Filebot docker. Script won't work. Please help.

Posted: March 10th, 2020, 3:16 pm
by Bjur
Any idea how?