From b37c55bc0b5dbdf6462b1556675d87d657a76238 Mon Sep 17 00:00:00 2001 From: Vincent Ducamps Date: Mon, 11 Jan 2021 21:15:36 +0100 Subject: [PATCH] pass get_version to private Co-authored-by: Jef LeCompte --- beetsplug/subsonicupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/subsonicupdate.py b/beetsplug/subsonicupdate.py index 4ff31f2fb..cd1905c02 100644 --- a/beetsplug/subsonicupdate.py +++ b/beetsplug/subsonicupdate.py @@ -46,7 +46,7 @@ class SubsonicUpdate(BeetsPlugin): 'pass': 'admin', 'url': 'http://localhost:4040', }) - self.version = self.get_version() + self.version = self.__get_version() if self.version > authtokenversion: self._log.info( u'use token authent method') @@ -99,7 +99,7 @@ class SubsonicUpdate(BeetsPlugin): return url + '/rest/{}'.format(endpoint) - def get_version(self): + def __get_version(self): url = self.__format_url("ping.view") payload = { 'c': 'beets',