mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
pass get_version to private
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
parent
811089af72
commit
b37c55bc0b
1 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue