aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteve Adams <[email protected]>2020-11-04 14:14:16 +1100
committerGitHub <[email protected]>2020-11-04 14:14:16 +1100
commit37ba592b1723445a42088bd26e5087f1d6ec7fe2 (patch)
tree1ce6404f6c590e021bf2ad5d5239989a8c800744
parent8adcd0b4f293accb332ac512d2c2fd663483f72c (diff)
downloadbazarr-37ba592b1723445a42088bd26e5087f1d6ec7fe2.tar.gz
bazarr-37ba592b1723445a42088bd26e5087f1d6ec7fe2.zip
yifysubtitles handle 404 when imdb_id not found
yifysubtitles handle 404 when imdb_id not found
-rw-r--r--libs/subliminal_patch/providers/yifysubtitles.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/subliminal_patch/providers/yifysubtitles.py b/libs/subliminal_patch/providers/yifysubtitles.py
index bd1a1102a..21cc3eac9 100644
--- a/libs/subliminal_patch/providers/yifysubtitles.py
+++ b/libs/subliminal_patch/providers/yifysubtitles.py
@@ -147,7 +147,9 @@ class YifySubtitlesProvider(Provider):
if response.status_code == 200:
break
- response.raise_for_status()
+ # 404 is returned if the imdb_id was not found
+ if response.status_code != 404:
+ response.raise_for_status()
if response.status_code != 200:
logger.debug('No subtitles found')