From c7aa248a7726d2a0238d4b96c6408ad3989fd69f Mon Sep 17 00:00:00 2001 From: L Maffeo Date: Tue, 28 Aug 2018 21:34:58 +0200 Subject: [PATCH 1/2] Configuration defaults review --- beetsplug/subsonicupdate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beetsplug/subsonicupdate.py b/beetsplug/subsonicupdate.py index 41e3ec36f..e6a62c588 100644 --- a/beetsplug/subsonicupdate.py +++ b/beetsplug/subsonicupdate.py @@ -40,10 +40,10 @@ class SubsonicUpdate(BeetsPlugin): # Set default configuration values config['subsonic'].add({ - u'host': u'localhost', - u'port': 4040, - u'user': u'admin', - u'pass': u'admin', + 'host': 'localhost', + 'port': '4040', + 'user': 'admin', + 'pass': 'admin', }) config['subsonic']['pass'].redact = True self.register_listener('import', self.loaded) From 7369933232c145f3a38bcf3c794f1e5bc518abe1 Mon Sep 17 00:00:00 2001 From: L Maffeo Date: Tue, 28 Aug 2018 21:50:24 +0200 Subject: [PATCH 2/2] Updated documentation --- beetsplug/subsonicupdate.py | 2 +- docs/plugins/subsonicupdate.rst | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/subsonicupdate.py b/beetsplug/subsonicupdate.py index e6a62c588..e80b1e15a 100644 --- a/beetsplug/subsonicupdate.py +++ b/beetsplug/subsonicupdate.py @@ -72,7 +72,7 @@ class SubsonicUpdate(BeetsPlugin): 'u': user, 't': token.hexdigest(), 's': salt, - 'v': '1.15.0', + 'v': '1.15.0', # Subsonic 6.1 and newer 'c': 'beets' } url = "http://{}:{}/rest/startScan".format(host, port) diff --git a/docs/plugins/subsonicupdate.rst b/docs/plugins/subsonicupdate.rst index 6d469dfa7..3637a1efd 100644 --- a/docs/plugins/subsonicupdate.rst +++ b/docs/plugins/subsonicupdate.rst @@ -19,7 +19,8 @@ which looks like this:: pass: password With that all in place, beets will send a Rest API to your Subsonic -server every time you change your beets library. +server every time you import new music. +Due to a current limitation of the API, all libraries visible to that user will be scanned. This plugin requires Subsonic v6.1 or higher and an active Premium license (or trial).