From b65a7da8e2e6497ab1ef168e2073545875ec39d7 Mon Sep 17 00:00:00 2001 From: tigranl Date: Thu, 8 Dec 2016 19:20:18 +0300 Subject: [PATCH] Add SNI_SUPPORTED --- beetsplug/lastimport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index 1bf21c7d4..c9cadc6a0 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -17,13 +17,13 @@ from __future__ import division, absolute_import, print_function import pylast from pylast import TopItem, _extract, _number -from beets import ui +from beets import util from beets import dbcore from beets import config from beets import plugins from beets.dbcore import types -if ui.SNI_SUPPORTED >= (2, 7, 9): +if util.SNI_SUPPORTED: API_URL = 'https://ws.audioscrobbler.com/2.0/' else: API_URL = 'https://ws.audioscrobbler.com/2.0/'