Fixed type in opensubtitles.com provider that could cause AuthenticationError for new users. #2152

This commit is contained in:
morpheus65535 2023-05-24 19:14:23 -04:00
parent 6f92e35ba0
commit baf7a7300d

View file

@ -400,7 +400,7 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
logger.info('Downloading subtitle %r', subtitle) logger.info('Downloading subtitle %r', subtitle)
headers = {'Accept': 'application/json', 'Content-Type': 'application/json', headers = {'Accept': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Beaker ' + self.token} 'Authorization': 'Bearer ' + self.token}
res = self.retry( res = self.retry(
lambda: checked( lambda: checked(
lambda: self.session.post(self.server_url + 'download', lambda: self.session.post(self.server_url + 'download',