Page 1 of 1

Post processor string handling

Posted: Sun Nov 26, 2006 11:08 pm
by bgowland
I'm trying to put together a lua script to remove "T4:" from the beginning of programme titles.

I think I have everything I need but I don't know what the XGUI_Lib functions are for searching a string for a substring or for trimming the string.

Basically I want to do the following (pseudo-code)...

if program.Title starts with "T4:"
then program.Title = Right(program.Title, Length(program.Title) - 3))

If that makes sense. :)

Cheers,
Brian

Posted: Sun Nov 26, 2006 11:11 pm
by alanbirtles
there are no string handling functions for string formatting. you can however use the lua functions see http://www.lua.org/manual/5.0/manual.html#5.3

Posted: Tue Nov 28, 2006 12:35 am
by bgowland
Thanks - I think I've found what I need from that link.

Cheers,
Brian

Posted: Thu Apr 26, 2007 11:12 pm
by black sky
bgowland wrote:Thanks - I think I've found what I need from that link.

Cheers,
Brian
Brian,
Did you ever get this to work. I want to do something similar for film stuff on some channels. e.g. Screen Two:Shawshank Redemption and remove the Screen two: bit. Also some other similar things.
My doing skills are v rusty,:oops: and your script exactly like what I need if you are willing to share....

Appreciate any help......