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:
parent
8adcd0b4f2
commit
37ba592b17
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue