Hey all, I feel like I'm getting closer to having this script run from Transmission on a Mac but I'm still not quite there.
EDIT: SOMEHOW NOW WORKING. REJOICE. But will leave this here for posterity and add a footnote with the now-working code...
Basically, I can run Filebot via CLI and it finds episodes/renames/works brilliantly. However, if I create a bash script as detailed in this thread and set Transmission to run it upon completed download, I either get:
Code: Select all
Failure (°_°)
Conflicting arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
(I have NO idea what this means because that's how we're told to do it in the guide...!!)
OR
Code: Select all
Exclude: /Users/peanutismint/Downloads/whateverfile.mp4
No files selected for processing
Failure (°_°)
(which I think happens when I tried to remove the '"ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME"' etc that I believed caused the first error....
My script is pretty much as described in this thread and looks like this:
Code: Select all
#!/bin/bash
/Applications/FileBot.app/Contents/MacOS/filebot.sh -script fn:amc \
--output "/Users/peanutismint/Downloads" \
--log-file "/Users/peanutismint/Documents/Scripts/amc.log" \
--action copy \
--conflict override -non-strict \
--def artwork=y "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
(I do VERY little coding so I hope I'm using those escapes correctly....!!)
I've updated latest versions of Java/Filebot via CLI as described on that guide page. Anybody know what I'm doing wrong?
EDIT: THE WORKING CODE!
I don't think I changed much - it just randomly started working... Perhaps I was experiencing a server-side error? Anyway, code pretty much the same but I edited slightly so that Filebot just renames my files in place without downloading artwork or creating extra folders etc...
Code: Select all
#!/bin/bash
/Applications/FileBot.app/Contents/MacOS/filebot.sh -script fn:amc \
--output "/Users/Peanut/Downloads" \
--log-file "/Users/Peanut/Documents/Scripts/amc.log" \
--action rename \
--conflict override -non-strict \
--def artwork=n "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi"