-
Notifications
You must be signed in to change notification settings - Fork 113
Feature request: daily max on addic7ed as they block IPs #723
Description
Request
It would be great if it was possible to set a daily max on how many subtitles are downloaded from Addic7ed pr 24 hours.
(Possibly from UTC 00 - UTC 00? I don't know, guessing..)
Addic7ed
Addic7ed has started blocking IPs. Their limits are 40 subtitles pr 24h, if you are VIP you get 80 pr 24h. Their rules say they allow no scripts, only singular manual downloads.
This also means you can't log into addic7ed.com from a machine on a blocked IP (...). You need to be on a different IP to even access their contact form and send them a message, asking to be unblocked..
Debugging
I first discovered this a month ago as I noticed my subtitles were degrading in quality, checked the history (last 500 subtitles) in my kitana sub-zero menu and saw no addic7ed entries.
With help from my vpn provider, we found out my static IP withe them was blocked. I then switched to another IP + adjusted my settings in sub-zero to run less, check for better for a shorter period etc.
A few days ago it again happened on the new IP, only 4 weeks later after the former IP was blocked. I have now moved to a VPN IP on a machine in the neighboring country, as there are no more in the country I live in w Plex port available to forward. Which is unfortunate as ping is higher.
This is now the 4th IP I run Plex / sub-zero on. All the former 3 IPs cannot access addic7ed anymore (all of them worked originally). Every other IP I have tried can access addic7ed successfully (work VPN, other local machine on different VPN IP, local cafe, friends house - etc).
A month ago I found a post somewhere, I think on Addic7ed forum but not sure - which mentioned they block IPs. Can't find it just now :(
My setup
I am a VIP user with Addic7ed (donate every month). Sent them a request to unblock the original IP, no response.
Yes! I have anti captha enabled. I am on Sub-Zero 2.6.5.3223.
So! Before I move through the IP pool in my neighbor country, it would be awesome to be able to limit the number of downloads from Addic7ed pr day..
Curl and logs
From a blocked IP:
$ curl -IL https://www.addic7ed.com
curl: (7) Failed to connect to www.addic7ed.com port 443: Operation timed out
From a non blocked IP:
$ curl -IL https://www.addic7ed.com
HTTP/2 200
server: nginx
date: Tue, 07 Apr 2020 19:04:43 GMT
content-type: text/html
x-powered-by: PHP/5.4.16
set-cookie: PHPSESSID=p81nup9hodpstdbk5rkqrk56p4; path=/
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
pragma: no-cache
Sub-zero log entries look like this:
2020-04-07 21:35:53,721 (70000e9b2000) : ERROR (logger:38) - subliminal_patch.core: Provider 'addic7ed' timed out
2020-04-07 21:36:15,753 (700009573000) : ERROR (logger:38) - subliminal_patch.core: Provider 'addic7ed' timed out
2020-04-07 21:36:17,818 (70000b98e000) : ERROR (logger:38) - subliminal_patch.core: Provider 'addic7ed' timed out
2020-04-07 21:37:07,772 (700009573000) : ERROR (logger:38) - subliminal_patch.core: Provider 'addic7ed' timed out
2020-04-07 21:37:26,459 (70000cd9d000) : ERROR (logger:38) - subliminal_patch.core: Provider 'addic7ed' timed out
Possibly related issue
The last few lines in #722 looks like it could be the same issue. Provided "subzero plugin logs" means sub-zero history in the kitana user interface and not the actual text log files. If not, it is likely something different.