JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 24.06.2017, 19:31
Fanboy06 Fanboy06 is offline
DSL User
 
Join Date: Jan 2017
Posts: 35
Default Pause between Downloads

I am a collector. I download massive amounts of images, but some sites ll ban my account for like a day if download more that like 250 images, but if i download like 200 pictures then wait like 1h then continue downloading i can potentially download more images.

So is there a way to make JDownload 2 to stop downloading from certain hosts after downloading certain amout of files or stop downloading after downloading certain amout of data(i mean it like stop downloading after downloading 500 mb).
Reply With Quote
  #2  
Old 25.06.2017, 02:50
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

if you know the restriction, you could write a event scripter script to disable the downloads and then enable them again when you specify

raztoki
__________________
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 25.06.2017, 03:34
Fanboy06 Fanboy06 is offline
DSL User
 
Join Date: Jan 2017
Posts: 35
Default

Quote:
Originally Posted by raztoki View Post
if you know the restriction, you could write a event scripter script to disable the downloads and then enable them again when you specify

raztoki
my java is a little rusty... i have no idea how to do that
Reply With Quote
  #4  
Old 25.06.2017, 03:49
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

The 'Event Scripter' is extension within the settings side panel. You write your scripts in JavaScript. Have a look at the editor, there is help (button on top) showing all the calls you can use.

What you will need to do is record how much you have downloaded in in particular time frame. Either it be an item or filesize count.

next approach is up to you,
either stop downloading and start again after some time frame
OR
disable all downloads from that specific provider so other downloads can continue and after some time frame enable again.

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 26.06.2017, 15:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

You can contact mgpai for help with eventscripter
Or you provide example links and we can check/add plugin for it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 27.06.2017, 01:05
Fanboy06 Fanboy06 is offline
DSL User
 
Join Date: Jan 2017
Posts: 35
Default

Quote:
Originally Posted by Jiaz View Post
You can contact mgpai for help with eventscripter
Or you provide example links and we can check/add plugin for it
ehmm.. ok. Here is some random cosplay pics i may need in the next 20 year for wallpaper editing/drawing lesson

**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #7  
Old 27.06.2017, 14:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

What happens? Is your IP blocked? Not working in browser either?
Or does the plugin throw any error?
Can you please create a logfile, see https://support.jdownloader.org/Know...d-session-logs
JDownloader has plugin support, so best would be to add proper error handling for your case
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 27.06.2017, 18:29
Fanboy06 Fanboy06 is offline
DSL User
 
Join Date: Jan 2017
Posts: 35
Default

Quote:
Originally Posted by Jiaz View Post
What happens? Is your IP blocked? Not working in browser either?
Or does the plugin throw any error?
Can you please create a logfile, see **External links are only visible to Support Staff**...
JDownloader has plugin support, so best would be to add proper error handling for your case
Well I am still far away from testing it... I got multiple problems writing my script

I want my script to get the just finished download so I ll set to activate after every finished download. Then It should get the host from whom it got the file. After it should check if it is the right host. At last it ll count every file it got from that host till the count reach 200 then i should put the host to sleep for 3600000 milisec (1 hour).

Code:
var numfinished, finishedhost;
finishedhost = myDownloadLink.getHost(); /*does this get the link i just finished downloading?*/
if (finishedhost==/*I am not sure how the host is saved and can I use "||" for or operator in Java?*/) {
    numfinished++;
    if (numfinished > 200) {
        sleep(3600000); /*I think this will sleep all my downloads... How do i sleep all the download for a single host*/
    }
}
Reply With Quote
  #9  
Old 27.06.2017, 19:25
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Why write a script at all? e-hentai has plugin support, so the plugin can add pauses or detect blocking and handle it.
So best would be to provide information what exactly happens when you are blocked.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 27.06.2017, 19:48
Fanboy06 Fanboy06 is offline
DSL User
 
Join Date: Jan 2017
Posts: 35
Default

Quote:
Originally Posted by Jiaz View Post
Why write a script at all? e-hentai has plugin support, so the plugin can add pauses or detect blocking and handle it.
So best would be to provide information what exactly happens when you are blocked.
how do i add a automatic pause after a certain amout of downloads?
Reply With Quote
  #11  
Old 28.06.2017, 11:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by Jiaz View Post
Why write a script at all? e-hentai has plugin support, so the plugin can add pauses or detect blocking and handle it.
So best would be to provide information what exactly happens when you are blocked.
Why not answer any of my questions? We can update the plugin but we either need way to reproduce the issue or you provide more information like logs.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 29.06.2017, 00:18
Fanboy06 Fanboy06 is offline
DSL User
 
Join Date: Jan 2017
Posts: 35
Default

Quote:
Originally Posted by Jiaz View Post
Why not answer any of my questions? We can update the plugin but we either need way to reproduce the issue or you provide more information like logs.
Omg... I am terrible sry... I had the sad Panda error 505... I dont need help anymore because i just found out they have a limit that slowly regenerated... so it didnt matter that i stopped for a period.:outch:
Reply With Quote
  #13  
Old 29.06.2017, 02:29
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

thx
didn't think it was a limit that you could bypass in your earlier description (when you mentioned ehentai). The plugin has code to set a wait time on specific errors, just need to let it do its thing.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
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 21:11.
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.