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
Post processor string handling
-
- Site Admin
- Posts: 495
- Joined: Mon Sep 06, 2004 4:44 pm
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
Brian,bgowland wrote:Thanks - I think I've found what I need from that link.
Cheers,
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......