Page 1 of 1

Add Misc Tag To Description

Posted: Sat Aug 06, 2011 11:55 am
by jameson_uk
In Digiguide you have the program description which is set a

Code: Select all

prog.Description=LangStrToXMLStrList(tag.Children.desc)
and you have the misc tag which is used to populate various flags

What I would like to do is set the program description to

Code: Select all

Prog desc....
......
....
(misc tag)
ie (add the contents of the misc tab to the bottom of the description)

Having a little bit of trouble as I can't quite get my head around the tag processing. Anyone able to help?

Re: Add Misc Tag To Description

Posted: Sat Aug 06, 2011 1:27 pm
by alanbirtles
general help with developing scripts: http://www.birtles.org.uk/xmltv/wiki/in ... ng_Scripts

to do what you want
  • add 'require("XGUI_Lib")' to the top of lib\xmltv_parse.lua
  • inside the 'if tag.Children["miscellaneous"] then' block add: 'prog.Description = XGUI_Lib.XS.Cat(prog.Description, "("..miscTag..")")

Re: Add Misc Tag To Description

Posted: Sat Aug 06, 2011 3:16 pm
by jameson_uk
Brilliant. Thank you so much