Trigger Filebot Node via JDownloader Web?

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
Manuuhhh
Posts: 2
Joined: 13 Apr 2019, 22:03

Trigger Filebot Node via JDownloader Web?

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Trigger Filebot Node via JDownloader Web?

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
Manuuhhh
Posts: 2
Joined: 13 Apr 2019, 22:03

Re: Trigger Filebot Node via JDownloader Web?

Post by Manuuhhh »

Alright, thanks a lot for your answer. I'll check the JD Support then.
EchiBawn
Posts: 1
Joined: 31 Jul 2019, 02:09

Re: Trigger Filebot Node via JDownloader Web?

Post by EchiBawn »

@Manuuhhh, were you ever able to figure out a usable script to reference the Synology Scheduled Filebot task?
Post Reply