Below is my script, and the output when I run the script manually, any tips on getting it to recognize this show properly would be appreciated.
Code: Select all
#!/bin/sh -xu
# Input Parameters
ARG_PATH="$3/$2"
ARG_NAME="$2"
ARG_LABEL="N/A"
# Configuration
#CONFIG_OUTPUT="/PlexData/media" # if this script is called by the deluge user, then $HOME will NOT refer to YOUR user home, but paths such as /var/lib/deluge instead
/usr/bin/filebot -script fn:amc --output "/PlexData/media" --action duplicate --conflict auto -non-strict --log-file /PlexData/filebotlogs/amc.log --def "exec=chmod 775 -R '{folder}'" --def subtitles=en movieFormat="Movies/{collection+'/'}{n} ({y}){'['+source+']'}/{n} ({y}) [{fn.match(/3D/)+', '}{vf}.{ac}-{channels}]" seriesFormat="TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}.{vf}.{ac}" excludeList=/PlexData/filebotlogs/amc.excludes unsorted=y music=y ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL"
chmod -R 777 /PlexData/media
Code: Select all
sudo ./deluge-postprocess.sh ef66118419d049de86b63aae106a6e0162cf9bb5 9-1-1.S01E01.1080p.HEVC.x265-MeGusta /PlexData/complete
+ ARG_PATH=/PlexData/complete/9-1-1.S01E01.1080p.HEVC.x265-MeGusta
+ ARG_NAME=9-1-1.S01E01.1080p.HEVC.x265-MeGusta
+ ARG_LABEL=N/A
+ /usr/bin/filebot -script fn:amc --output /PlexData/media --action duplicate --conflict auto -non-strict --log-file /PlexData/filebotlogs/amc.log --def exec=chmod 775 -R '{folder}' --def subtitles=en movieFormat=Movies/{collection+'/'}{n} ({y}){'['+source+']'}/{n} ({y}) [{fn.match(/3D/)+', '}{vf}.{ac}-{channels}] seriesFormat=TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}.{vf}.{ac} excludeList=/PlexData/filebotlogs/amc.excludes unsorted=y music=y ut_dir=/PlexData/complete/9-1-1.S01E01.1080p.HEVC.x265-MeGusta ut_kind=multi ut_title=9-1-1.S01E01.1080p.HEVC.x265-MeGusta ut_label=N/A
Locking /PlexData/filebotlogs/amc.log
Run script [fn:amc] at [Thu Feb 15 13:49:51 CST 2018]
Parameter: exec = chmod 775 -R '{folder}'
Parameter: subtitles = en
Parameter: movieFormat = Movies/{collection+'/'}{n} ({y}){'['+source+']'}/{n} ({y}) [{fn.match(/3D/)+', '}{vf}.{ac}-{channels}]
Parameter: seriesFormat = TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}.{vf}.{ac}
Parameter: excludeList = /PlexData/filebotlogs/amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: ut_dir = /PlexData/complete/9-1-1.S01E01.1080p.HEVC.x265-MeGusta
Parameter: ut_kind = multi
Parameter: ut_title = 9-1-1.S01E01.1080p.HEVC.x265-MeGusta
Parameter: ut_label = N/A
Use excludes: /PlexData/filebotlogs/amc.excludes (0)
Input: /PlexData/complete/9-1-1.S01E01.1080p.HEVC.x265-MeGusta/9-1-1.S01E01.1080p.HEVC.x265-MeGusta.mkv
Group: [tvs:9 1 1] => [9-1-1.S01E01.1080p.HEVC.x265-MeGusta.mkv]
Get [English] subtitles for 1 files
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [9 1 1]
Failed to fetch episode data: [9 1 1]
CmdlineException: Failed to match files to episode data
Processing 1 unsorted files
Skipped [/PlexData/complete/9-1-1.S01E01.1080p.HEVC.x265-MeGusta/9-1-1.S01E01.1080p.HEVC.x265-MeGusta.mkv] because [/PlexData/media/Unsorted/9-1-1.S01E01.1080p.HEVC.x265-MeGusta/9-1-1.S01E01.1080p.HEVC.x265-MeGusta.mkv] already exists
Processed 0 files
Finished without processing any files
Failure (°_°)