Merge pull request #1186 from stevezau/patch-3

yifysubtitles handle 404 when imdb_id not found
pull/1188/head
morpheus65535 4 years ago committed by GitHub
commit bd3157d537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save