How to setup jdownloader-filebot freenas jail

Any questions? Need some help?
Post Reply
Psychoteur
Posts: 1
Joined: 26 Aug 2017, 13:38

How to setup jdownloader-filebot freenas jail

Post by Psychoteur »

Hello,
I'm trying to use filebot with jdownloader inside freenas jail.

I'm totally lost. There are a lot of documentation about gui but cli is another beast.

So what I have done so far.
I've downloaded the portable version of filebot and extracted inside /var/db/filebot

Code: Select all

filebot -version
FileBot 4.7.9 (r4984) / OpenJDK Runtime Environment 1.8.0_131 / FreeBSD 11.0-STABLE (amd64)
So I assume it's ok.

Jdownloader root is "/usr/jdownloader"

I try to follow the instructions of that link:
viewtopic.php?f=4&t=3478

1. Install the Event Scripter plugin -> ok but how to be sure is up and running ?
2. Add the Execute FileBot (PackageFinished) script
3. Add the Execute FileBot (ArchiveExtracted) script

I've found the files:
https://github.com/filebot/plugins/tree ... downloader

"Add" meaning what exactly ? I do not understand.
Do I put the files inside /usr/downloader or /var/db/filebot or something else ?

4.Download the jdownloader-postprocess.sh (Mac and Linux) or jdownloader-postprocess.cmd (Windows) script, make sure it's executable, and place it in the JD_HOME folder.

JD_HOME = /usr/jdownloader ?

and,
var script = '/path/to/jdownloader-postprocess'
= var script = '/usr/jdownloader/jdownloader-postprocess'

I assume I do the same in the *.js scripts.

var script = JD_HOME + '/jdownloader-postprocess.sh'
becomes
var script = '/usr/jdownloader/jdownloader-postprocess'

Now, I've read that I've to put -no-xattr since zfs doesn't support xattr extensions.

so I edited jdownloader-postprocess.sh

Code: Select all

# Input Parameters
ARG_PATH="$1"
ARG_NAME="$2"
ARG_LABEL="movie"

# Configuration
CONFIG_OUTPUT="/media/Movies"

filebot -no-xattr -script fn:amc --output "$CONFIG_OUTPUT" --action duplicate --conflict auto -non-strict --log-file amc.log --def skipExtract=y unsorted=y music=n artwork=n 
excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL"
I only use for movies so I can set ARG_LABEL="movie" ?
I saw there is a {plex} setting for rename but how do I put it inside the cmd line ?
Is it possible to do a dry run ?
I've a very slow internet connection so downloading a movie and waiting to see the result isn't very practical.

Thanks.
tsoet
Posts: 8
Joined: 03 Feb 2014, 09:34

Re: How to setup jdownloader-filebot freenas jail

Post by tsoet »

I can't help you with the jdownloader-specific parts, as I have no knowledge of jdownloader.

However:

To get filebot working inside a freenas jail, you'll need to follow the instructions I left at
viewtopic.php?f=6&t=5042#p29327

You can specify formats inside the command line by doing e.g.

Code: Select all

filebot --def 'movieFormat=FORMAT_GOES_HERE'

It is possible to do a dry run by using

Code: Select all

--action test 
, and you can call the script manually while you're testing, so long as you provide the right arguments to it.
Post Reply