View Single Post
  #2031  
Old 08.11.2021, 01:16
JDL1059 JDL1059 is offline
Junior Loader
 
Join Date: Oct 2021
Posts: 10
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Interval > Add urls
    Trigger : Interval (Recommended 3600000 or more)
*/

var file = "Downloads/.torrent files/JDL Sync.txt";// <- Set path to text file

try {
    var links = readFile(getPath(file));

    callAPI("linkgrabberv2", "addLinks", {
        links: links
    })
} catch (e) {};
thank you. What are the steps to enable this script? I went to "Event Scripter", clicked "add", set the "Trigger" to "Interval" and then within the Edit Script button added the code above pointing to my text file which has 4 different megaupload links. I set the call interval to 259200000 i.e. 3 days. Synchronous execution of script checkbox is ticked. I hit test compile and it says successful, but when i hit test run, nothing happens. I tried changing the interval to 1000ms and nothing happened either. Any idea? **External links are only visible to Support Staff**... of my JDL install.
Reply With Quote