mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 08:32:06 +01:00
Fix typos
This commit is contained in:
parent
471f875dc1
commit
5ca664e4aa
3 changed files with 5 additions and 4 deletions
|
|
@ -28,7 +28,6 @@ import beets
|
|||
from beets import util
|
||||
from beets import config
|
||||
import six
|
||||
import sys
|
||||
|
||||
VARIOUS_ARTISTS_ID = '89ad4ac3-39f7-470e-963a-56509c546377'
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ from __future__ import division, absolute_import, print_function
|
|||
import pylast
|
||||
from pylast import TopItem, _extract, _number
|
||||
from beets import util
|
||||
from beets import ui
|
||||
from beets import dbcore
|
||||
from beets import config
|
||||
from beets import plugins
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
from beets import plugins
|
||||
from beets import ui
|
||||
from beets import util
|
||||
|
||||
|
||||
DIV_RE = re.compile(r'<(/?)div>?', re.I)
|
||||
|
|
@ -645,11 +645,12 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
for source in sources]
|
||||
|
||||
def get_bing_access_token(self):
|
||||
url = "{0}api.microsofttranslator.com"
|
||||
params = {
|
||||
'client_id': 'beets',
|
||||
'client_secret': self.config['bing_client_secret'],
|
||||
'scope': 'https://api.microsofttranslator.com' if sys.version_info >= (2, 7, 9) else
|
||||
'http://api.microsofttranslator.com',
|
||||
'scope': url.format('https://') if util.SNI_SUPPORTED
|
||||
else url.format('http://'),
|
||||
'grant_type': 'client_credentials',
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue