-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cgInvoke data parsing add or check for " around data string #138
Comments
It should be simple to add surrounding ", but that needs to escape the inner ones too. |
From my trying this mornings, it seems that for CasparCG to accept it, the inner ones has to be ‘ |
Escaping " and ' is not a simple task I have found. It is definitely possible to use " inside the string, as I often pass in JSON which needs those. |
As the inner ones has to be ' and the outer ones has to be " then there should be no need for escaping. |
You say that but you can't guarantee that will work for every use case. An appropriate AMCP command (escaped) looks like this: Note here how the json Also note how assuming the inner quotes will always be |
Yeah, I see, you´re right, I was a little quick concluding that.
|
When passing a string with the cgInvoke command, the string will be ignored by CasparCG unless it is surrounded by a "
So this won´t work:
To parse the data to AMCP one needs to add a " on both sides of the string:
Best solution would be that the modules formats the AMCP command with the " added.
Otherwise a string checker should be added, and return an error if string is not correct formatted?
The text was updated successfully, but these errors were encountered: