mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-19 13:17:56 +08:00
Fixed token issue with opensubtitles.com
This commit is contained in:
parent
d0c7c5d5e0
commit
557a06173d
1 changed files with 4 additions and 0 deletions
|
@ -322,6 +322,10 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
|
|||
return self.query(languages, video)
|
||||
|
||||
def download_subtitle(self, subtitle):
|
||||
if self.token is NO_VALUE:
|
||||
logger.debug("No cached token, we'll try to login again.")
|
||||
self.login()
|
||||
|
||||
logger.info('Downloading subtitle %r', subtitle)
|
||||
|
||||
headers = {'Accept': 'application/json', 'Content-Type': 'application/json',
|
||||
|
|
Loading…
Reference in a new issue