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

Come up with a useful post-processing script? Share it here!
Post Reply
Bjur
Newbie
Newbie
Posts: 5
Joined: July 8th, 2013, 7:03 am

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

Post 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 \
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
Bjur
Newbie
Newbie
Posts: 5
Joined: July 8th, 2013, 7:03 am

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

Post by Bjur »

Any idea how?
Post Reply