From a087579c3cd88bdf481a7da75e8c44bcdce2bc4a Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 18 Jun 2018 20:29:30 +0200 Subject: [PATCH] Escaped spaces in JSON --- alexa_remote_control_plain.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index 6dc8d8a..1ccfffc 100644 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -481,7 +481,6 @@ if [ -n "${SEQUENCECMD}" ] then echo "Sequence command: ${SEQUENCECMD}" COMMAND="{\"behaviorId\":\"PREVIEW\",\"sequenceJson\":\"{\\\"@type\\\":\\\"com.amazon.alexa.behaviors.model.Sequence\\\",\\\"startNode\\\":{\\\"@type\\\":\\\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\\\",\\\"type\\\":\\\"${SEQUENCECMD}\\\",\\\"operationPayload\\\":{\\\"deviceType\\\":\\\"${DEVICETYPE}\\\",\\\"deviceSerialNumber\\\":\\\"${DEVICESERIALNUMBER}\\\",\\\"locale\\\":\\\"${LANGUAGE}\\\",\\\"customerId\\\":\\\"${MEDIAOWNERCUSTOMERID}\\\"${TTS}}}}\",\"status\":\"ENABLED\"}" -echo $COMMAND ${CURL} ${OPTS} -s -b ${COOKIE} -A "${BROWSER}" -H "DNT: 1" -H "Connection: keep-alive" -L\ -H "Content-Type: application/json; charset=UTF-8" -H "Referer: https://alexa.${AMAZON}/spa/index.html" -H "Origin: https://alexa.${AMAZON}"\