Skip to content

Commit d389ac1

Browse files
committed
Use HTTPS for MS translator API (from #2247)
1 parent 9e76c83 commit d389ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beetsplug/lyrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def append_translation(self, text, to_lang):
762762
if self.bing_auth_token:
763763
# Extract unique lines to limit API request size per song
764764
text_lines = set(text.split('\n'))
765-
url = ('http://api.microsofttranslator.com/v2/Http.svc/'
765+
url = ('https://api.microsofttranslator.com/v2/Http.svc/'
766766
'Translate?text=%s&to=%s' % ('|'.join(text_lines), to_lang))
767767
r = requests.get(url,
768768
headers={"Authorization ": self.bing_auth_token})

0 commit comments

Comments
 (0)