(error: bool)
Sets the playback error. Updates musiq state when the state changes.
Sets the playback error. Updates musiq state when the state changes.
Sets the playback error . Updates musiq state when the state changes .
def set_playback_error(error: bool) -> None:
    """Sets the playback error. Updates musiq state when the state changes."""
    if redis.get("playback_error"):
        if not error:
            redis.set("playback_error", False)
            musiq.update_state()
            settings.update_state()
    else:
        if error:
            redis.set("playback_error", True)
            musiq.update_state()
            settings.update_state()
def set_playback_error ( error : bool ) -> None : if redis . get ( "playback_error" ) : if not error : redis . set ( "playback_error" , False ) musiq . update_state ( ) settings . update_state ( ) else : if error : redis . set ( "playback_error" , True ) musiq . update_state ( ) settings . update_state ( )