JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 25.02.2020, 22:26
yondu yondu is offline
DSL Light User
 
Join Date: Jun 2019
Posts: 33
Default [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.
Reply With Quote
  #2  
Old 25.02.2020, 23:20
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

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
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3  
Old 07.04.2020, 10:36
yondu yondu is offline
DSL Light User
 
Join Date: Jun 2019
Posts: 33
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 22:06.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.