1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 08:13:14 +00:00

yifysubtitles handle 404 when imdb_id not found

yifysubtitles handle 404 when imdb_id not found
This commit is contained in:
Steve Adams 2020-11-04 14:14:16 +11:00 committed by GitHub
parent 8adcd0b4f2
commit 37ba592b17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')