birtles.org.uk logo

Add Misc Tag To Description

Discussion of Version 3 and developing lua grabbers

Add Misc Tag To Description

Postby 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?
jameson_uk
 
Posts: 2
Joined: Sat Aug 06, 2011 11:51 am

Re: Add Misc Tag To Description

Postby 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..")")
alanbirtles
Site Admin
 
Posts: 493
Joined: Mon Sep 06, 2004 4:44 pm

Re: Add Misc Tag To Description

Postby jameson_uk » Sat Aug 06, 2011 3:16 pm

Brilliant. Thank you so much
jameson_uk
 
Posts: 2
Joined: Sat Aug 06, 2011 11:51 am


Return to XMLTV GUI V3

Who is online

Users browsing this forum: No registered users and 1 guest

cron