JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 20.02.2017, 12:07
torai
Guest
 
Posts: n/a
Default 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.
Reply With Quote
  #2  
Old 20.02.2017, 12:15
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

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. :]
Reply With Quote
  #3  
Old 20.02.2017, 12:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,289
Default

Interval -> Settings-Advanced Settings->LinkgrabberSettings.autoconfirmdelay
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 20.02.2017, 12:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,289
Default

What kind of links are you talking about? Why isn't the link available in the first place?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 20.02.2017, 17:24
torai
Guest
 
Posts: n/a
Default

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 .
Reply With Quote
  #6  
Old 20.02.2017, 19:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,289
Default

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
Reply With Quote
  #7  
Old 20.02.2017, 19:24
torai
Guest
 
Posts: n/a
Default

yes that's what I meant ;
Reply With Quote
  #8  
Old 20.02.2017, 19:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,289
Default

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
Reply With Quote
  #9  
Old 20.02.2017, 19:32
torai
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #10  
Old 20.02.2017, 19:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,289
Default

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
Reply With Quote
  #11  
Old 22.02.2017, 06:29
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by torai View Post
... paste a link & set an interval for auto refresh ...
Is it the final link or is it a source for other download links?
Reply With Quote
  #12  
Old 22.02.2017, 11:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,289
Default

I guess he talks about a source link that takes a while before the actual download links will be available.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 23.02.2017, 13:33
torai
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #14  
Old 27.02.2017, 15:43
torai
Guest
 
Posts: n/a
Default

any update concerns the auto refresh script ?
Reply With Quote
  #15  
Old 28.02.2017, 15:18
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by torai View Post
any update concerns the auto refresh script ?
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
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 17:17.
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.