diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index 0ed9daf3c..1bf21c7d4 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -23,7 +23,10 @@ from beets import config from beets import plugins from beets.dbcore import types -API_URL = 'http://ws.audioscrobbler.com/2.0/' +if ui.SNI_SUPPORTED >= (2, 7, 9): + API_URL = 'https://ws.audioscrobbler.com/2.0/' +else: + API_URL = 'https://ws.audioscrobbler.com/2.0/' class LastImportPlugin(plugins.BeetsPlugin):