zerratar / SubSync

Automatically download subtitles for your movies
MIT License
290 stars 26 forks source link

Configuraable Request Interval #2

Closed hellfirehd closed 6 years ago

hellfirehd commented 6 years ago

After a few hundred (thousand?) requests all requests start failing. I think it is likely my IP Address has reached a limit and SubScene is now hard blocking me. The logging doesn't indicate the reason it failed but when it goes from only the odd requests here and there failing to every request failing I think thats probably a good indicator.

If the there was a configurable delay between requests this could help mitigate outright blocking.

zerratar commented 6 years ago

@hellfirehd Good suggestion, I will take a look at it!

zerratar commented 6 years ago

I've just added a --delay <milliseconds> argument that you can use for this. Unfortunately it will make all requests sequential instead of concurrent.