How to use XMLTV as source (1 Viewer)

Sasler

Portal Pro
October 19, 2006
72
0
I found this great site from estonia that has Discovery Channel (among others) aviable in XMLTV format:

http://xmltv.kava.ee/files/41_channeldata.xml

I'm trying to grabb it using the following code:

<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info availableDays="7" timezone="GMT Standard Time" />
<Channels>
<Channel id="discoverychannel@kava.ee" siteId="41" />
</Channels>
<Listing type="Xml">
<Site url="http://xmltv.kava.ee/files/[ID]_channeldata.xml" post="" external="false" encoding="" />
<Xml xpath="" channel="">
<Fields>
<Field name="#START" xmlname="start" />
<Field name="#END" xmlname="stop" />
<Field name="#TITLE" xmlname="title" />
<Field name="#DESCRIPTION" xmlname="desc" />
</Fields>
</Xml>
</Listing>
</Grabber>


Unfortunatly it does not work :(. Any ideas what I'm doing wrong? Is there a way to simply merge the data to the existing TVGuide.xml?
 

ChuckTX

Portal Member
February 5, 2007
15
0
Home Country
United States of America United States of America
You will need to explain does not work a little more. Are you having problems getting the data or combining it with your existing TVguide.xml, or having problems with the grabber, or is it something else entirely. More info is needed though.
 

Sasler

Portal Pro
October 19, 2006
72
0
You will need to explain does not work a little more. Are you having problems getting the data or combining it with your existing TVguide.xml, or having problems with the grabber, or is it something else entirely. More info is needed though.


OK, here is there current code I'm testing:

<?xml version="1.0" encoding="utf-8" ?>
- <Grabber>
<Info availableDays="0" timezone="E. Europe Standard Time" />
- <Channels>
<Channel id="discoverychannel@kava.ee" siteId="41" />
</Channels>
- <Listing type="Xml">
<Site url="http://xmltv.kava.ee/files/[ID]_channeldata.xml" post="" external="false" encoding="" delay="2000" />
- <Xml xpath="//programme" channel="41.xmltv.kava.ee">
- <Fields>
<Field name="#START" xmlname="start" />
<Field name="#END" xmlname="stop" />
<Field name="#TITLE" xmlname="title" />
<Field name="#DESCRIPTION" xmlname="desc" />
</Fields>
</Xml>
</Listing>
</Grabber>


This is how far I get when grabbing (form TVguide-writing.xml file):

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="WebEPG">
<channel id="discoverychannel@kava.ee">
<display-name>Discovery Channel</display-name>
</channel>


And it does not go any further. :confused:

Any hepl would be creatly appriciated :D
 

Sasler

Portal Pro
October 19, 2006
72
0
Hey, I just noticed that WebEPG has a log file :oops:

Anyway here is the log I get:

2007-03-09 10:18:05.220625 [Info.][1]: WebEPG: Starting
2007-03-09 10:18:05.220625 [Info.][1]: WebEPG: Version 2.4.2
2007-03-09 10:18:05.236250 [Info.][1]: Loading ChannelMap: WebEPG.xml
2007-03-09 10:18:05.251875 [Info.][1]: WebEPG: Getting Channel 1 of 1
2007-03-09 10:18:05.251875 [Info.][1]: WebEPG: Opening LT\xml_kava_ee.xml
2007-03-09 10:18:05.611250 [Info.][1]: WebEPG: TimeZone, Local: FLE Standard Time
2007-03-09 10:18:05.611250 [Info.][1]: WebEPG: TimeZone, Site : E. Europe Standard Time
2007-03-09 10:18:05.626875 [Info.][1]: WebEPG: ChannelId: discoverychannel@kava.ee
2007-03-09 10:18:05.689375 [Info.][1]: WebEPG: Reading http://xmltv.kava.ee/files/41_channeldata.xml POST:
2007-03-09 10:18:05.798750 [ERROR][1]: WebEPG: Fatal Error
2007-03-09 10:18:05.798750 [ERROR][1]: WebEPG: Could not find file 'C:\Program Files\Team MediaPortal\MediaPortal\xmltv.dtd'.
2007-03-09 10:18:05.814375 [Info.][1]: WebEPG: Finished



:confused: Could not find file 'C:\Program Files\Team MediaPortal\MediaPortal\xmltv.dtd'.

I wonder what that means. What is in the xmltv.dtd file (which by the way is there and located under the XMLTV folder). Perhaps this is just a missleading error message :(
 

Sasler

Portal Pro
October 19, 2006
72
0
OK, now I copied the xmltv.dtd to MP root (just to see what error message I would get then) and this is the error I get in the log:

2007-03-09 10:23:12.376875 [Info.][1]: WebEPG: Starting
2007-03-09 10:23:12.376875 [Info.][1]: WebEPG: Version 2.4.2
2007-03-09 10:23:12.392500 [Info.][1]: Loading ChannelMap: WebEPG.xml
2007-03-09 10:23:12.408125 [Info.][1]: WebEPG: Getting Channel 1 of 1
2007-03-09 10:23:12.408125 [Info.][1]: WebEPG: Opening LT\xml_kava_ee.xml
2007-03-09 10:23:12.908125 [Info.][1]: WebEPG: TimeZone, Local: FLE Standard Time
2007-03-09 10:23:12.908125 [Info.][1]: WebEPG: TimeZone, Site : E. Europe Standard Time
2007-03-09 10:23:12.939375 [Info.][1]: WebEPG: ChannelId: discoverychannel@kava.ee
2007-03-09 10:23:13.017500 [Info.][1]: WebEPG: Reading http://xmltv.kava.ee/files/41_channeldata.xml POST:
2007-03-09 10:23:13.423750 [ERROR][1]: WebEPG: Fatal Error
2007-03-09 10:23:13.423750 [ERROR][1]: WebEPG: Expression must evaluate to a node-set.
2007-03-09 10:23:13.439375 [Info.][1]: WebEPG: Finished


Hmm..

Expression must evaluate to a node-set.

What on earth does that mean then (I think I preferred that last error message)?
 

Sasler

Portal Pro
October 19, 2006
72
0
My latest (non-functional) version:

<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info availableDays="0" timezone="E. Europe Standard Time" />
<Channels>
<Channel id="discoverychannel@kava.ee" siteId="41" />
</Channels>
<Listing type="Xml">
<Site url="http://xmltv.kava.ee/files/[ID]_channeldata.xml" post="" external="false" encoding="" delay="2000" />
<Xml xpath="//programme" channel="">
<Fields>
<Field name="#START" xmlname="start" />
<Field name="#END" xmlname="stop" />
<Field name="#TITLE" xmlname="title" />
<Field name="#DESCRIPTION" xmlname="desc" />
</Fields>
<Searches>
<Search match=" +0200" field="#START" remove="true" />
<Search match=" +0200" field="#END" remove="true" />
</Searches>
</Xml>
</Listing>
</Grabber>


Logfile (partial):

2007-03-09 10:47:43.126875 [Info.][1]: Parsing error #START : 20070323044500 +0200
2007-03-09 10:47:43.142500 [Info.][1]: Parsing error #END : 20070323051000 +0200
2007-03-09 10:47:43.142500 [Info.][1]: Parsing error #START : 20070323051000 +0200
2007-03-09 10:47:43.158125 [Info.][1]: Parsing error #END : 20070323054000 +0200
2007-03-09 10:47:43.173750 [Info.][1]: Parsing error #START : 20070323054000 +0200
2007-03-09 10:47:43.189375 [Info.][1]: Parsing error #END : 20070323060500 +0200
2007-03-09 10:47:43.205000 [Warn.][1]: WebEPG: Program Count (0) < Listing Count (466) - Discard Count (0), possible template error



HELP :D
 

Sasler

Portal Pro
October 19, 2006
72
0
Now i'm trying this approach:

<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info availableDays="0" timezone="E. Europe Standard Time" />
<Channels>
<Channel id="discoverychannel@kava.ee" siteId="41" />
</Channels>
<Listing type="Xml">
<Site url="http://xmltv.kava.ee/files/[ID]_channeldata.xml" post="" external="false" encoding="" />
<Xml xpath="//programme" channel="">
<Fields>
<Field name="#START" xmlname="start" />
<Field name="#END" xmlname="stop" />
<Field name="#TITLE" xmlname="title" />
<Field name="#DESCRIPTION" xmlname="desc" />
</Fields>
</Xml>
</Listing>
<Actions>
<Modify channel="*" field="#START" search=" +0200" action="Remove" />
<Modify channel="*" field="#END" search=" +0200" action="Remove" />
</Actions>
</Grabber>


But it doesn't help. I get the same error. I don't know how to get rid of that " +0200", which I believe is the problem.
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Hi Sasler,

    You've done a really great job on this, but I'm afraid it will not work without a code change :(

    However, all your tests are not lost because they will help me make the required changes quicker :) I will have a look at this on the weekend for you (and your other requests).

    Regards,

    /James
     

    Sasler

    Portal Pro
    October 19, 2006
    72
    0
    Hi Sasler,

    You've done a really great job on this, but I'm afraid it will not work without a code change :(

    However, all your tests are not lost because they will help me make the required changes quicker :) I will have a look at this on the weekend for you (and your other requests).

    Regards,

    /James

    :D
     

    James

    Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Hi Sasler,

    It works now, but you will need a new SVN and:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Grabber>
      <Info availableDays="0" timezone="E. Europe Standard Time" />
      <Channels>
        <Channel id="discoverychannel@kava.ee" siteId="41" />
      </Channels>
      <Listing type="Xml">
        <Site url="http://xmltv.kava.ee/files/[ID]_channeldata.xml" post="" external="false" encoding="" delay="2000" />
        <Xml xpath="//programme" channel="">
          <Fields>
            <Field name="#STARTXMLTV" xmlname="start" />
            <Field name="#ENDXMLTV" xmlname="stop" />
            <Field name="#TITLE" xmlname="title" />
            <Field name="#DESCRIPTION" xmlname="desc" />
          </Fields>
        </Xml>
      </Listing>
    </Grabber>

    Just for info. All the search/remove functions only work with HTML sites. The Actions work on all.

    Cheers,

    /James
     

    Users who are viewing this thread

    Top Bottom