def __init__(self): self.group_id = active_group_store.get_active_group() self.playing_id = None self.playing_type = None self.playing_shuffle = False self.paused = False self.soco = list(soco.discover())[0]
def volume(value): group_id = active_group_store.get_active_group() if value: if value[0] in ('+', '-'): set_group_relative_volume(group_id, value) else: set_group_volume(group_id, value) else: result = get_group_volume(group_id) click.echo(result['volume'])
def volume(value): group_id = active_group_store.get_active_group() if value: if value[0] in ("+", "-"): set_group_relative_volume(group_id, value) else: set_group_volume(group_id, value) else: result = get_group_volume(group_id) click.echo(result["volume"])
def __init__(self): self.config = Config() self.group_id = active_group_store.get_active_group() self.playing_id = None self.playing_type = None self.playing_shuffle = False self.paused = False self._zones_cached = None self._zones = []
def next(): group_id = active_group_store.get_active_group() control.skip_to_next_track(group_id)
def pause(): group_id = active_group_store.get_active_group() control.pause(group_id)
def status(): group_id = active_group_store.get_active_group() return control.status(group_id)
def play(playlist_id): group_id = active_group_store.get_active_group() if playlist_id: control.load_playlist(group_id, playlist_id, play_on_completion=True) else: control.play(group_id)
def prev(): group_id = active_group_store.get_active_group() control.skip_to_previous_track(group_id)