summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/subliminal_patch/providers/subf2m.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/subliminal_patch/providers/subf2m.py b/libs/subliminal_patch/providers/subf2m.py
index 262ebc309..5ab637c6f 100644
--- a/libs/subliminal_patch/providers/subf2m.py
+++ b/libs/subliminal_patch/providers/subf2m.py
@@ -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: