Hello,
I need to add field "ID" in programme atribute, and i need help about this.
I need my code to look like this for every programme in xml file:
<programme start="20160114010000 +0100" stop="20160114013000 +0100" channel="CNN" id="3785">
Please help me to solve this!
Thanks!
I'll have to disappoint you.
The id attribute is not a member of the programme element (xmltv standard). So it can't be done by wg++.
But you could do a few thinks.
I presume the id is of the programme, and not the channel.
You could use the category element. And store the value in there, but with a fixed prefix like:
<category>PROGRAM_ID=3785</category>
And after WG++ has ran, you could parse the guide.xml file. During the parsing you could look up the special category element, get the id, remove that category element and add the id value to the programme attibute.
Hope this helps.
Thanks for helping me, as you ask field "ID" is for every programme i will try this and i think this will solve my problem.