Add Misc Tag To Description

Discussion of Version 3 and developing lua grabbers
Post Reply
jameson_uk
Posts: 2
Joined: Sat Aug 06, 2011 11:51 am

Add Misc Tag To Description

Post by jameson_uk » Sat Aug 06, 2011 11:55 am

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?

alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Add Misc Tag To Description

Post by alanbirtles » Sat Aug 06, 2011 1:27 pm

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..")")

jameson_uk
Posts: 2
Joined: Sat Aug 06, 2011 11:51 am

Re: Add Misc Tag To Description

Post by jameson_uk » Sat Aug 06, 2011 3:16 pm

Brilliant. Thank you so much

Post Reply