#1
|
|||
|
|||
autorefresh link ?
hello , I don't know if this option exists or not but is there an option to paste a link & set an interval for auto refresh so the Jdownloader will try again & again till the link is up ?
also how to set the interval between pasting link in linkgrabber & the automatically downloading start ? ( I think it's 10 secs but where to change it ) thanks. |
#2
|
||||
|
||||
sorry?
download tasks are the only ones that can set a interval to retry. linkchecking tasks do not retry, you will need to do this yourself manually or with event scripter or even with our API with external application triggering it.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
||||
|
||||
Interval -> Settings-Advanced Settings->LinkgrabberSettings.autoconfirmdelay
__________________
JD-Dev & Server-Admin |
#4
|
||||
|
||||
What kind of links are you talking about? Why isn't the link available in the first place?
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
thanks for the answer ;
sometimes links ( like porn sites updates ) they don't have a time for release so especially when i'm at work I won't watch that site so all I have to do is paste the update link & set autorefresh interval ( try every 5 secs for 100 times for example ) , once the link is up Jdownloader will get it , that's my idea . |
#6
|
||||
|
||||
So you say that a specific site has links that may contain no links at all because the actual links might get added at later time, am I right?
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
yes that's what I meant ;
|
#8
|
||||
|
||||
I'm sorry but we won't add native support for such use cases. You could however try to use the eventscripter for such case. Write a script (ask mgpai for help) that checks the link and once it returns results, abort rescan..something like that
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
ok thanks i'll ask mgpai , I need a script or something that works as a plugin not a real update or support just a simple solution ;
thanks. |
#10
|
||||
|
||||
With eventscripter you can write yourself scripts that interact with JDownloader. For you a simple script that checks a given url for found results and retries every x mins and then either it worked or failed.
__________________
JD-Dev & Server-Admin |
#11
|
|||
|
|||
Is it the final link or is it a source for other download links?
|
#12
|
||||
|
||||
I guess he talks about a source link that takes a while before the actual download links will be available.
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
here is an example :
this is a download link from ( bangbros ) : so it's offline ( it will be online but I don't know when ) the script is simple so instead of me checking the online status each time manually ; the script will have to do that automatically ( with x seconds & x time ) ; once it's online then the confirmation to download it will proceed it to download section & that's it . Last edited by torai; 23.02.2017 at 13:36. |
#14
|
|||
|
|||
any update concerns the auto refresh script ?
|
#15
|
|||
|
|||
Example URL was/is missing from your post.
This is a 'host based' script. If you need 'url based' script, PM the example link to me. Remember to enclose them in 'CODE' tag. Code:
// Autocheck offline links from user-defined hosts and autostart download when they are online // Trigger: Interval var host = "example.com"; // <- Set download Host var int = 5; // <- Set interval (in minutes) between retries (Recommended: Not less than 5 minutes) var count = 30; // <- Set number of retries if (interval == int * 60 * 1000) { var links = getAllCrawledLinks(); for (i = 0; i < links.length; i++) { var link = links[i]; var url = link.getContentURL(); var counter = getProperty(url, true); if (link.getAvailableState() != "ONLINE" && new RegExp(host).test(url) && counter < count) { setProperty(url, counter += 1, true); link.remove(); callAPI("linkgrabberv2", "addLinks", { "autostart": true, "links": url }); } } } else { interval = int * 60 * 1000; } Last edited by mgpai; 28.02.2017 at 15:38. Reason: Modified recommended interval |
Thread Tools | |
Display Modes | |
|
|