1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Subf2m provider: handle 403

This commit is contained in:
Vitiko 2022-12-17 01:48:05 -04:00
parent 82c9e14341
commit e6864a9001

View file

@ -147,6 +147,11 @@ class Subf2mProvider(Provider):
for n in range(retry):
req = self._session.get(url, stream=True)
if req.status_code == 403:
logger.debug("Access to this resource is forbidden: %s", url)
break
# Sometimes subf2m will return a 503 code. This error usually disappears
# retrying the query
if req.status_code == 503: