mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 04:22:07 +08:00
Fixed greeksubs provider. #1477
This commit is contained in:
parent
6eeaa46bbf
commit
5f6b201a71
1 changed files with 4 additions and 4 deletions
|
@ -75,12 +75,12 @@ class GreekSubsProvider(Provider):
|
|||
r = self.session.get(search_link, timeout=30)
|
||||
|
||||
# 404 is returned if the imdb_id was not found
|
||||
if r.status_code != 404:
|
||||
r.raise_for_status()
|
||||
if r.status_code == 404:
|
||||
logger.debug('IMDB id {} not found on greeksubs'.format(imdb_id))
|
||||
return subtitles
|
||||
|
||||
if r.status_code != 200:
|
||||
logger.debug('No subtitles found')
|
||||
return subtitles
|
||||
r.raise_for_status()
|
||||
|
||||
soup_page = ParserBeautifulSoup(r.content.decode('utf-8', 'ignore'), ['html.parser'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue