Automated Media Center
This guide will help you with setting up the amc script with JDownloader. We'll add our own Event Scripter event script, which passes some arguments along to our shell script, which then calls filebot as usual.- Install the Event Scripter plugin
- Add the Execute FileBot (PackageFinished) script
- Add the Execute FileBot (ArchiveExtracted) script
- Download the jdownloader-postprocess.sh (i.e. Linux and macOS) or jdownloader-postprocess.cmd (i.e. Windows) script, make sure it's executable, and place it in the JD_HOME folder.
The script location is set in the first line:
javascript: Select all
var script = '/path/to/jdownloader-postprocess.sh'
You may edit the configuration files directly if you are running JDownloader on a headless server:
org.jdownloader.extensions.eventscripter.EventScripterExtension.scripts.json
Known Issues
- The PackageFinished script is called before extraction is complete. The ArchiveExtracted script is called for each individual archive. In order to avoid FileBot processing partially extracted files it is recommended that extraction is disabled in JDownloader and enabled in FileBot via the --def skipExtract=n option.
If something is not working, please read Shell Script Debugging for Beginners and make sure it's not a simple $PATH or permission issue.