#1
|
|||
|
|||
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). |
#2
|
||||
|
||||
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. :] |
#3
|
|||
|
|||
my java is a little rusty... i have no idea how to do that
|
#4
|
||||
|
||||
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. :] |
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
Quote:
**External links are only visible to Support Staff****External links are only visible to Support Staff** |
#7
|
||||
|
||||
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 |
#8
|
|||
|
|||
Quote:
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*/ } } |
#9
|
||||
|
||||
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 |
#10
|
|||
|
|||
how do i add a automatic pause after a certain amout of downloads?
|
#11
|
||||
|
||||
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 |
#12
|
|||
|
|||
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:
|
#13
|
||||
|
||||
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. :] |
|
|