diff options
author | Steve Adams <[email protected]> | 2020-11-04 14:14:16 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-04 14:14:16 +1100 |
commit | 37ba592b1723445a42088bd26e5087f1d6ec7fe2 (patch) | |
tree | 1ce6404f6c590e021bf2ad5d5239989a8c800744 | |
parent | 8adcd0b4f293accb332ac512d2c2fd663483f72c (diff) | |
download | bazarr-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.py | 4 |
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') |