Post processor string handling

Discussion of Version 3 and developing lua grabbers
Post Reply
bgowland
Posts: 7
Joined: Sun Jun 25, 2006 4:33 pm

Post processor string handling

Post 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
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Post 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
bgowland
Posts: 7
Joined: Sun Jun 25, 2006 4:33 pm

Post by bgowland »

Thanks - I think I've found what I need from that link.

Cheers,
Brian
black sky
Posts: 4
Joined: Mon Apr 03, 2006 3:13 pm

Post 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......
Post Reply