JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03.12.2024, 23:43
Nimboid Nimboid is offline
Super Loader
 
Join Date: Jan 2023
Location: UK
Posts: 25
Default Script to distribute incoming links by Property?

I'm trying to segregate incoming links based on a link Property: 'Date' provided by the plugin, so that links before a given date are directed to a different package than those on or after the date, which continue to the default package for the job.

Code:
callAPI("linkgrabberv2", "addLinks"
doesn't work for me unless its destination package exists; it doesn't error, just ignores. I can create a new package with
Code:
callAPI("linkgrabberv2", "movetoNewPackage"
for the initial link.

Question is, how to efficiently check whether package:<packageName> exists within the link grabber table, so that I call the "movetoNewPackage" version only once? Or is it possible to write a flag to an environment variable perhaps? I can see a getEnv(myString), but no equivalent setEnv().
Reply With Quote
 

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 20:43.
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 - 2025, Jelsoft Enterprises Ltd.