mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-31 11:22:38 +00:00
Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
8462386b5f
2 changed files with 6 additions and 2 deletions
|
@ -229,6 +229,8 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin):
|
|||
continue
|
||||
|
||||
result_title = result_title.strip().replace("<EFBFBD>", "").replace(" ", ".")
|
||||
if not result_title:
|
||||
continue
|
||||
|
||||
guessable = result_title.strip() + ".s01e01." + result_year
|
||||
guess = guessit(guessable, {'type': "episode"})
|
||||
|
|
|
@ -96,7 +96,7 @@ class YifySubtitlesProvider(Provider):
|
|||
|
||||
languages = {Language(l, c) for (_, l, c) in YifyLanguages}
|
||||
languages.update(set(Language.rebuild(l, hi=True) for l in languages))
|
||||
server_urls = ['https://yifysubtitles.org', 'https://www.yifysubtitles.com']
|
||||
server_urls = ['https://yifysubtitles.org']
|
||||
video_types = (Movie,)
|
||||
|
||||
def initialize(self):
|
||||
|
@ -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