mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-22 05:51:10 +00:00
no log: fix for opensubtitles.com login issue.
This commit is contained in:
parent
4a890b2561
commit
eb8f482eed
1 changed files with 1 additions and 3 deletions
|
@ -167,7 +167,7 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
|
|||
raise ProviderError('Invalid JSON returned by provider')
|
||||
else:
|
||||
region.set("oscom_token", self.token)
|
||||
return True
|
||||
return
|
||||
elif r.status_code == 401:
|
||||
raise AuthenticationError('Login failed: {}'.format(r.reason))
|
||||
elif r.status_code == 429:
|
||||
|
@ -176,8 +176,6 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
|
|||
raise ProviderError(r.reason)
|
||||
else:
|
||||
raise ProviderError('Bad status code: {}'.format(r.status_code))
|
||||
finally:
|
||||
return False
|
||||
|
||||
@region.cache_on_arguments(expiration_time=SHOW_EXPIRATION_TIME)
|
||||
def search_titles(self, title):
|
||||
|
|
Loading…
Reference in a new issue