Hi guys,
I have some non-standart xmltv that I want to import to my guide.xml. The format is:
<?xml version="1.0" encoding="windows-1251"?>
<?xml-stylesheet type="text/xsl" href="http://www.webgrabplus.com/epg.xsl"?>
<channel name="some channel" lang="bul" encoding="cyrillic">
<event start="06/10/2015 01:40:00" duration="01:50:00">
<description>
<name>name</name>
<text>full name</text>
</description>
<longdescription>
<text>bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla </text>
</longdescription>
</event>
<event start="06/10/2015 03:30:00" duration="02:00:00">
<description>
<name>name</name>
<text>full name</text>
</description>
<longdescription>
<text>bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla </text></longdescription>
</event>
</channel>
Is there an easy way to do this? Or I have to write some bash or perl script to do this for me?
Well,
Because it is non-standard xmltv, it will not be recognized. It's the same thing as feeding with an excel sheet. We only understand the language we know.
And the file you refer to, is not an xmltv file, but just a xml file. And xml files have no fixed structure!.
The simplest thing you could do (if the xml format is fixed) is write a siteini that takes this file and grabs all the info in int. So that would convert the xml you have into a correct xmltv format.
Just use
in the siteini to take the file instead of a normal url.
And for example, the showsplit would be:
Thank you, Francis! But my knowledge in WebGrab Plus is far from enough and I can not complete this siteini. I will appreciate if you find time to help.
Thank you in advance!