You are here

Programme ID

3 posts / 0 new
Last post
Mithrandir
Offline
Donator
Joined: 8 years
Last seen: 1 year
Programme ID

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! 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

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.

Mithrandir
Offline
Donator
Joined: 8 years
Last seen: 1 year

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.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl