mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-03-16 01:33:41 +08:00
Subf2m provider: improve queries
This commit is contained in:
parent
2b0e435f6a
commit
304ad160e0
1 changed files with 2 additions and 2 deletions
|
@ -185,9 +185,9 @@ class Subf2mProvider(Provider):
|
|||
logger.debug("Access to this resource is forbidden: %s", url)
|
||||
break
|
||||
|
||||
# Sometimes subf2m will return a 503 code. This error usually disappears
|
||||
# Sometimes subf2m will return 404 or 503. This error usually disappears
|
||||
# retrying the query
|
||||
if req.status_code == 503:
|
||||
if req.status_code in (404, 503):
|
||||
logger.debug("503 returned. Trying again [%d] in 3 seconds", n + 1)
|
||||
time.sleep(3)
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue