ChanSlash
From XMLTVDoc
ChanSlash is a post processor which replaces colons in channel names with a caracter of your choice. It has a single setting: [edit] Character(s) to replace "/" with
Enter here the characters that you want to replace colons in the channel names
Code for the ChanSlash: Save as a lua file and put it in the "XMLTV GUI/scripts" directory
require("XGUI_Lib") local RepChar local function Pass1Func(proc,channel) local cname=XGUI_Lib.XS.Val(channel.Name) XGUI.SetStatus(2,"Processing "..cname) cname,_=string.gsub(cname,"/",RepChar) channel.Name=XGUI_Lib.XS.Replace(channel.Name,cname) return channel end local function Pass1Start(proc) RepChar=XGUI.GetSetting(proc,"RepChar","") return XGUI.OK end local function Init(proc) XGUI.AddSetting(proc,"RepChar",XGUI.SettingType.String,"-","Character(s) to replace \"\\\" with") return XGUI.OK end PostProcs.ChanSlash={ Name = "Channel Name Slash Replacer", Version = "0.01.00", Author = "DAve", InfoURL = "http://www.birtles.org.uk/xmltv/wiki/index.php?title=ChanSlash", Passes={ Pass1={ Start=Pass1Start, Type=XGUI.PassTypes.Channel, Func=Pass1Func, }, }, Init=Init, }