JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 31.05.2019, 16:26
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default Feature Request: Limit number of downloads/hour

I am trying to download from pluralsight and the account gets blocked if you download more than x videos/hr. Is there any plugin setting that could set this?

something similar to the domain rules I found here:
Quote:
Originally Posted by raztoki View Post
You can already do this
'main menu > settings > max con per host' as a global setting
or you can set a specific connection limit in advanced settings, I've been using this for youtube for 1-2+ years
'settings > advanced settings > GeneralSettings: Domain Rules'
Code:
[ {
  "domainPattern" : ".*youtube\\.com",
  "filenamePattern" : null,
  "accountPattern" : null,
  "enabled" : true,
  "maxSimultanDownloads" : 1,
  "allowToExceedTheGlobalLimit" : false
} ]

Last edited by user135711; 31.05.2019 at 16:31.
Reply With Quote
  #2  
Old 03.06.2019, 11:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

The plugin already sets some requests limits but x videos/hour is not supported. I would suggest to make use of eventscripter and write a script that automatically checks for x downloads/hours and then disables waiting links and enable them after some timeout again, please check https://board.jdownloader.org/showthread.php?t=70525
Ask mgpai for help, he is our script master. I'm sure he will be able to provide a solution for this.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 04.06.2019, 06:39
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default thanks

If anyone wants to know, I've found the magic secret number that they refuse to disclose upon asking is around 160 unique downloads per hour when they block the account. I'll see how far I can get with a javascript limit.
Reply With Quote
  #4  
Old 04.06.2019, 10:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

downloads started/done? then I could add this to plugin
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 05.06.2019, 08:45
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default

Good question, it is actually downloads started. The number encompasses any unique videos viewed by any means regardless of how much of the video watched/accessed.
Reply With Quote
  #6  
Old 05.06.2019, 14:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

after next plugin update, jd will limit to 160 in 1 hour timeframe
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 05.06.2019, 23:33
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default

Make it around 150 to be safe. I didn't get the exact number because each trial guess takes a long time. I have to download the videos, wait for the account to be blocked. Wait for the customer support to ask to read the user agreement and agree to not do what I'm doing, agree, then wait for the unblock.
Reply With Quote
  #8  
Old 06.06.2019, 09:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

I've set limit to 150 and update is already live
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 07.06.2019, 06:12
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default Lower than 150

:outch: Either the limiter let videos through or I got the number wrong. Try lowering it to 125. It looks like the downloader continues to scan the movies while displaying the message "Account block protection." I'll have to create a new account to verify, because they permanently blocked the one I was using.

Reply With Quote
  #10  
Old 07.06.2019, 06:19
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default

Ah, I see. I think the plugin did work, but there is more than one limit. This time they measured over 4 hours instead of 1 hour, so maybe a second limit of less than 400 per 4 hours or just 100 per hour: Their logs show I had 428 total requests in 240 minutes. Before they were citing over 1 hour periods.

Last edited by user135711; 07.06.2019 at 07:12.
Reply With Quote
  #11  
Old 11.06.2019, 15:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

At the moment the plugin limits account uses to 150 per hour (moving time window) as I did understand your explanation that limit only happens to account itself?
How about 100/hour and 200/4 hours ?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 14.06.2019, 08:40
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default

Quote:
Originally Posted by Jiaz View Post
How about 100/hour and 200/4 hours ?
Yes, try 100/hour and 200/4 hours and tell me after it's implemented so I can check for you. If you verify/register jdownloader.org to receive tips in brave I'll also send you a $5 tip in bat.

Another good question:I believe the limit only happens to the account, but their logs also include the ip address the request was made from.
Reply With Quote
  #13  
Old 14.06.2019, 17:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

Quote:
Originally Posted by user135711 View Post
If you verify/register jdownloader.org to receive tips in brave I'll also send you a $5 tip in bat.
See https://my.jdownloader.org/contribute
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 14.06.2019, 17:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

Will be added with next core update later this day
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 14.07.2019, 17:29
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default pause the download not just block it.

Currently the download continues to scan links after "Account block protection is activated". The message text then changes to "account is missing". It would be more informative for users that don't know what is going on "if account block protection" remained in the message and it would make more sense to pause all of the queued pluralsight downloads rather than continue to scan down them. (But the most important function works. My account was not blocked this time). Then after the elapsed wait, the downloads unpause.

Last edited by user135711; 14.07.2019 at 17:55.
Reply With Quote
  #16  
Old 15.07.2019, 19:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

The code only prevents downloads done with the account but it doesn't prevent new downloads to be added. the plugin doesn't know that the account that is required (account is missing) is currently only temp. blocked/disabled. also it's not possible at the moment to show custom error message over "account is missing" but after elapsed wait time, those links should start as well, right?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 16.07.2019, 00:57
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default

Quote:
Originally Posted by Jiaz View Post
but after elapsed wait time, those links should start as well, right?
That's not what's happening on my end. It continues to scan down all the links that are already queued till they all end up in "Account is missing" status and then after the 4 hours they remain in the state "account is missing" until you press start again.
Reply With Quote
  #18  
Old 16.07.2019, 09:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

Can you provide a screenshot of the Account overview when this happens and maybe also a screenshot of the download list.
*scan down all the links* you mean JDownloader tries to download and marks the file with *Account is missing*?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 16.07.2019, 18:38
user135711 user135711 is offline
Super Loader
 
Join Date: Jul 2018
Posts: 26
Default

It's just the same as the screen shot above. The skipped account is missing gets filled on every line, but as far as I can tell at the end of four hours it doesn't restart the downloads. I'll leave it running again though just to make sure they don't start after four hours.
----
Update-The downloads did not restart after 4 hours. This is very important as the whole benefit of jdownloader is to not have to manually queue up downloads every four hours. When you have time consider implementing this.

Last edited by user135711; 17.07.2019 at 10:42.
Reply With Quote
  #20  
Old 17.07.2019, 11:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,945
Default

Can you check Settings-Accounts if your account shows temp. error?
__________________
JD-Dev & Server-Admin
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 22:35.
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 - 2019, Jelsoft Enterprises Ltd.