CasparCG / help

File an issue here if you need help with CasparCG by the community-led support :+1:
https://casparcg.com
74 stars 8 forks source link

Issue with HTML producer when spaces in argList #7

Closed JamesWatton closed 6 years ago

JamesWatton commented 6 years ago

Hi,

I've got a HTML producer configured and I'm attempting to send an update(...) command via TCP connector. When the command contains no spaces, it works as expected and executes the command. When the command contains spaces, it fails to execute, presumably as Caspar server is splitting the command on spaces, so it acts as if the sections after the space are a new argument.

Working command: CG 1-20 invoke 1 update(\"{\\"FOO\\"}\") Failed command: CG 1-20 invoke 1 update(\"{\\"FOO BAR\\"}\")

Is there a correct way to escape the space, or a way to make this work? I've tried wrapping the update(...) in quote marks too, but that still fails.

JamesWatton commented 6 years ago

Nevermind, user error, wrapping with quotes does indeed work