|
#1
|
|||
|
|||
[EventScripter] Automated add-link job (execution every 12 hours)
A lot of series are released episode by episode nowadays, and uploaders normally add new episodes to the same folder on their filecrypter. Therefore it should be possible to stay up to date, if the link of the respective filecrypt-folder is added twice per day to the linkcollecter. If there are no new links, nothing should happen. If there are new links, they are transferred to the download section. Is there a way to implement this? Layman asking, so please tell me what I would have to set up and where. Any answers are highly appreciated. Many thanks in advance.
|
#2
|
||||
|
||||
Hi,
there are multiple options. Please search our forum for: - EventScripter addon - Folder Watch addon - Myjdownloader/Remote API -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
For the people interested, I got it working with the following script in the EventScripter:
Code:
// Add multiple URLs at user defined interval // Trigger required: "Interval" var setInterval = 720; // in minutes var feeds = "C:/.../links.txt"; // Full path to text file containing the urls if (interval == setInterval * 720 * 1000) { callAPI("linkgrabberv2", "addLinks", { "deepDecrypt": true, "links": readFile(feeds) }); } else { interval = setInterval * 720 * 1000; } Please note that even under Windows, slashs should be used instead of backslashs in the filepath. Otherwise, an error occurs. |
Thread Tools | |
Display Modes | |
|
|