Kodi Community Forum

Full Version: Hard time with [ and ]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey

I'm trying to get some info from my movie filenames in order to tag which are in french and which are in english. My movies are tagged with [FR] or [ENG]. I got around with a substring(ListItem.filename,FR) but I keep getting bad results with movie titles including "from". I'm trying to replace that line with substring(ListItem.filename,[FR]) but from what I understand, the [ ] are causing me alot of problems.

Any ideas? I'm guessing there's an easy solution involving something like $LBRACKET but I can't find it.

Thanks!
Did you try escaping them? ie \[ and \].
Yeah but I'm guessing I have the syntax wrong. I tried substring(ListItem.filename,\[FR\]) , \[ + FR + \]...