From 3c385a601f189b85d4f0bcd41895ed0237321076 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 8 Jan 2019 18:24:59 +0100 Subject: [PATCH] Exposing backend hosts and ports as both lists and JSON on Snapcast plugin --- platypush/plugins/music/snapcast.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/plugins/music/snapcast.py b/platypush/plugins/music/snapcast.py index 01c034c45..975012d61 100644 --- a/platypush/plugins/music/snapcast.py +++ b/platypush/plugins/music/snapcast.py @@ -38,6 +38,8 @@ class MusicSnapcastPlugin(Plugin): backend = get_backend('music.snapcast') backend_hosts = backend.hosts if backend else [self.host] backend_ports = backend.ports if backend else [self.port] + self.backend_hosts = backend_hosts + self.backend_ports = backend_ports self.backend_hosts_json = json.dumps({ backend_hosts[i]: backend_ports[i] for i in range(len(backend_hosts))