importing Season/Episode numbers into DB from XML

Post Reply
keneo
Posts: 54
Joined: Mon Oct 19, 2009 8:58 pm

importing Season/Episode numbers into DB from XML

Post by keneo » Sun Mar 03, 2013 7:13 am

Alright,
So I figured out that the TV listings importer uses the following XML tag to fill in the episodeNumber field of the GuideProgram table.

<episode-num system="onscreen">

unfortunately, the program I use to download TV listings (MC2XML.exe) does not provide a XML tag for the season number. Instead puts season AND episode number together in the episode tag. So I want to write a script that will parse it, and insert a season tag into the XML before feeding it to the importer.

what tag does the importer look for the season number? Is it just <series-num system="onscreen"> ?
That didn't seem to work for me.

User avatar
hexagon
Posts: 175
Joined: Sun Jun 01, 2008 10:54 am

Re: importing Season/Episode numbers into DB from XML

Post by hexagon » Sun Mar 03, 2013 12:33 pm

See the xmltv.dtd file, line 345.
I guess your answer is that both episodes and seasons should be placed in the episode-num tag.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests