Newznab download status code not caught properly
This commit is contained in:
1 parent
3b34196901
commit
9d21dd9196
1 file changed
+1
-1
@@ -187,7 +187,7 @@ class Base(NZBProvider, RSS):
|
|||||||
self.limits_reached[host] = False
|
self.limits_reached[host] = False
|
||||||
return data
|
return data
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
if e.code == 503:
|
if e.response.status_code == 503:
|
||||||
response = e.read().lower()
|
response = e.read().lower()
|
||||||
if 'maximum api' in response or 'download limit' in response:
|
if 'maximum api' in response or 'download limit' in response:
|
||||||
if not self.limits_reached.get(host):
|
if not self.limits_reached.get(host):
|
||||||
|
|||||||
Reference in new issue
Block a user