mirror of
https://github.com/beetbox/beets.git
synced 2026-02-20 06:14:22 +01:00
Use HTTPS for MS translator API (from #2247)
This commit is contained in:
parent
9e76c839f6
commit
d389ac15e1
1 changed files with 1 additions and 1 deletions
|
|
@ -762,7 +762,7 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
if self.bing_auth_token:
|
||||
# Extract unique lines to limit API request size per song
|
||||
text_lines = set(text.split('\n'))
|
||||
url = ('http://api.microsofttranslator.com/v2/Http.svc/'
|
||||
url = ('https://api.microsofttranslator.com/v2/Http.svc/'
|
||||
'Translate?text=%s&to=%s' % ('|'.join(text_lines), to_lang))
|
||||
r = requests.get(url,
|
||||
headers={"Authorization ": self.bing_auth_token})
|
||||
|
|
|
|||
Loading…
Reference in a new issue