Browse Source

Stop on 429 code

pull/3944/head
Ruud 11 years ago
parent
commit
8e23b02653
  1. 5
      couchpotato/core/plugins/base.py

5
couchpotato/core/plugins/base.py

@ -231,8 +231,9 @@ class Plugin(object):
try:
# To many requests
if status_code == 429:
self.http_failed_request[host] = time.time()
if status_code in [429]:
self.http_failed_request[host] = 1
self.http_failed_disabled[host] = time.time()
if not self.http_failed_request.get(host):
self.http_failed_request[host] = 1

Loading…
Cancel
Save