Page 1 of 1

No Subtitles with AMC Script

Posted: 06 Jan 2017, 07:01
by samsonrosen
Hello!

I have the AMC Script running nicely every time transmission finishes on my Mac. However, new subtitles do not get downloaded despite defining it. Is there anything wrong with my script or is this expected behaviour? Everything else works. I also have the FileBot Subtitles PKG installed separately as I a bought the FileBot App from the AppStore.

Thanks,

Sam

Code: Select all

#!/bin/sh

# Input Parameters
ARG_PATH="$TR_TORRENT_DIR/$TR_TORRENT_NAME"
ARG_NAME="$TR_TORRENT_NAME"
ARG_LABEL="N/A"

# Configuration
CONFIG_OUTPUT="/Users/churchserver/Plex"

/usr/local/bin/filebot -script fn:amc --output "$CONFIG_OUTPUT" --action move --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def clean=y --def subtitles=en

Code: Select all

Locking /private/var/root/.filebot/logs/amc.log
Run script [fn:amc] at [Fri Jan 06 07:09:03 GMT 2017]
Parameter: unsorted = y
Parameter: music = y
Parameter: excludeList = .excludes
Parameter: ut_dir = /
Parameter: ut_kind = multi
Parameter: ut_title = 
Parameter: ut_label = N/A
Parameter: clean = y
Parameter: subtitles = en
Bad ut_dir value: /
Illegal usage: no input
Failure (°_°)

Re: No Subtitles with AMC Script

Posted: 06 Jan 2017, 07:15
by rednoah
Your test case is broken. You're trying process your entire filesystem. Do cat /private/var/root/.filebot/logs/amc.log (Why is it running as root? Very strange and very dangerous!) and have a look at previous logs from valid calls.

EDIT: Fortunately for you, FileBot doesn't allow you to process / but if you were using an older version, running as root with --def clean=y, you probably would have destroyed your system. No joke. NEVER EVER RUN AS ROOT.

The location of the --log-file amc.log depends on the the user that's executing the command. You will need to set your OpenSubtitles credentials for each user, as settings are stored per user.