Background: I have a downloader box running FreeNAS. I have multiple jails, one containing Sabnzbd, Rtorrent and filebot. I am using the CLI (obviously, headless machine). I have decided to use filebot instead of using the automatic renaming and importing from couchpotato and sonarr.
The issue: I am using the AMC script to try and automate every import. I have scripts that are called from sabnzbd and rtorrent respectively (below). The problem is mainly with TV Shows. Here is an example. If i had the majority of the friends Series, but i was missing an episode or two, and i downloaded them via Sonarr.. AMC would import them incorrectly. It would assume it was from a different series, ie: friends (2002) as apposed to the correct friends series. I understand it's encouraged to use filters.. but that is kind of not applicable for an "automated downloading machine". I have tried renaming my entire collection with the AMC script, which continued to mismatch everything i already had matched. ( i will say, i used the GUI to match everything correctly the first time...)
I guess my question is, is there a correct way to label these episodes so it would automatically recognize the right series...
Code: Select all
#!/usr/local/bin/bash
# Input Parameters
FILE_PATH="$1"
FILE_NAME="$2"
FILE_LABEL="$3"
# Configuration
/usr/local/filebot/filebot.sh -script \
fn:amc \
--output "/mnt/storage" \
--log-file /usr/local/filebot/logs/rtorrent.log \
--action keeplink \
-no-xattr \
--conflict override -non-strict \
--def excludeList=/usr/local/filebot/logs/rtorrent_exclude.txt \
--def music=n \
--def plex=192.168.1.6:xxxxxxxxx \
--def artwork=y \
--def clean=y \
--def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2" \
--def "terms=sample|trailer|etc" \
--def "ut_dir=$FILE_PATH" \
--def "ut_kind=multi" \
--def "ut_label=$FILE_LABEL" \
--def "ut_title=$FILE_NAME"
exit $7
Edit: I might have figured out one way, by manually running them all through the GUI and appending the air dates to the file names.. Before, My friends series would split into three separate folders. Now, i think it detects it all correctly.. I need to do more testing to verify.