rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.42k stars 600 forks source link

Binsearch anti-spam delay #1863

Open LittleLama opened 10 years ago

LittleLama commented 10 years ago

Hi,

I noticed that Binsearch has an anti DDOS policy that doesn't permit more than 100 connections per 5 min unless you get banned.

As I run Couchpotato and Sickbeard too, I lighted the searches in each of these 3 apps, but only stopping Headphones solved the problem until beeing unbanned. Maybe an option to delay every search on Binsearch would be helpfull. Best regards

AdeHub commented 10 years ago

https://github.com/rembo10/headphones/issues/236

basilfx commented 10 years ago

With the fix from #1906, this should be very easy to implement: it only needs to know how many requests per seconds are allowed.

Maybe it's an idea to add a field per Newznab provider, to specify the max. connections per second?

LittleLama commented 10 years ago

Binsearch only allows 100 request per 5 minutes. As a system has to share them with the other apps using binsearch (this one can't be unchecked), a timer between connections can be a good idea yes.