mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 10:17:16 +02:00
Fix hard coded id
This commit is contained in:
parent
5a3559e8e4
commit
9bbba976f9
1 changed files with 2 additions and 2 deletions
|
@ -450,14 +450,14 @@ class SnapcastWrapper(object):
|
||||||
|
|
||||||
def control(self, command, params={}):
|
def control(self, command, params={}):
|
||||||
self.send_request("Stream.Control", {
|
self.send_request("Stream.Control", {
|
||||||
"id": "Pipe", "command": command, "params": params})
|
"id": self._stream_id, "command": command, "params": params})
|
||||||
|
|
||||||
def set_property(self, property, value):
|
def set_property(self, property, value):
|
||||||
properties = {}
|
properties = {}
|
||||||
properties[property] = value
|
properties[property] = value
|
||||||
logger.info(f'set_properties {properties}')
|
logger.info(f'set_properties {properties}')
|
||||||
self.send_request("Stream.SetProperties", {
|
self.send_request("Stream.SetProperties", {
|
||||||
"id": "Pipe", "properties": properties})
|
"id": self._stream_id, "properties": properties})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def metadata(self):
|
def metadata(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue