Page 1 of 1

Trigger Filebot Node via JDownloader Web?

Posted: 13 Apr 2019, 22:16
by Manuuhhh
Hi

Im using Filebot Node on my Synology Nas and I sucessfully created some scheduled tasks.
Now I want to trigger those tasks with JD Web. Is that even possible?
I searched the forum but I only found tutorials for the Desktop Version of JD. I run my JD on the NAS itself, which means I can only use it via Web Interface.

I noticed that the task planner uses the following scripts:

Code: Select all

"/usr/local/filebot-node/task 3" or "/usr/local/filebot-node/task 2"
Is it possible to integrate those into the following and let JDownloader run the task instead of the Synology Nas?

Code: Select all

[{"eventTrigger":"ON_PACKAGE_FINISHED", "enabled":true, "name":"FileBot", "script":"var amcFile = '/usr/local/filebot-node/task 3';var path = '/volume1/Downloads/'; callAsync(function() {}, amcFile, path);", "eventTriggerSettings":{}, "id":123654}]
I tried to insert it but it won't work.
Do I need to use the Non-Node version to get this to work?

Thanks in advance.

Manuel

Re: Trigger Filebot Node via JDownloader Web?

Posted: 14 Apr 2019, 04:14
by rednoah
1.
Yes, these launcher scripts can easily be called manually via the command-line, and thus also automatically from 3rd party programs. You'll want to ask the JD folks for JD support if you have trouble with JD.

A correct JD / JS event script would probably look more like this:

Code: Select all

var command = ['/usr/local/filebot-node/task', '3']
log(command)
log(callSync(command))

2.
FileBot Node always requires FileBot. Just do cat /usr/local/filebot-node/task and see what it does. It doesn't do much. ;)

Re: Trigger Filebot Node via JDownloader Web?

Posted: 14 Apr 2019, 18:42
by Manuuhhh
Alright, thanks a lot for your answer. I'll check the JD Support then.

Re: Trigger Filebot Node via JDownloader Web?

Posted: 31 Jul 2019, 02:12
by EchiBawn
@Manuuhhh, were you ever able to figure out a usable script to reference the Synology Scheduled Filebot task?