Kodi Community Forum

Full Version: Escaping a string?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have an expression where I’m testing for a file name with text ‘Quad+’ but it fails as it sees the ‘+’ as a string concatenation.

<value condition="String.Contains(Player.Filename,Quad+)">4.1</value>

How can I escape the plus sign?

not possible. but perhaps the workaround mentioned in this thread could also work for you: https://forum.kodi.tv/showthread.php?tid=352495
Thanks ronie.

That's not going to work in my case but its a great idea:

Quote:what about this for HDR10+
String.Contains(ListItem.Filenameandpath,.HDR10) + !String.Contains(ListItem.Filenameandpath,.HDR10.)

And this for HDR10

I've got hundreds of files and folders using the naming 'Quad+'. I guess I'll need to rename them all...
It tied to a texture? If so this should work just fine. I have my movies show HDR10+
open image in a new tab to show better

<control type="image">
<texture background="true">$VAR[mediaflags_large_path]/video/hdr10+.png</texture>