MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Electronic Program Guide » WebEPG


WebEPG everything related to WebEPG in here

Reply
 
Thread Tools Display Modes
Old 2007-03-07, 18:28   #1 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Question How to use XMLTV as source

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?
Sasler is offline   Reply With Quote
Old 2007-03-09, 08:44   #2 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

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.
ChuckTX is offline   Reply With Quote
Old 2007-03-09, 09:05   #3 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by ChuckTX View Post
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.

Any hepl would be creatly appriciated
Sasler is offline   Reply With Quote
Old 2007-03-09, 09:22   #4 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Default

Hey, I just noticed that WebEPG has a log file

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



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 is offline   Reply With Quote
Old 2007-03-09, 09:27   #5 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Default

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 is offline   Reply With Quote
Old 2007-03-09, 09:49   #6 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Default

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
Sasler is offline   Reply With Quote
Old 2007-03-09, 10:26   #7 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Default

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.
Sasler is offline   Reply With Quote
Old 2007-03-09, 16:51   #8 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

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
James is offline   Reply With Quote
Old 2007-03-09, 18:27   #9 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by James View Post
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 is offline   Reply With Quote
Old 2007-03-11, 21:13   #10 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

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
James is offline   Reply With Quote
Reply

Bookmarks

Tags
source, xmltv

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Czech guide sources ackoh WebEPG 6 2007-07-15 15:07
Cant get source code, please help Craig General Development (no feature request here!) 19 2006-07-30 11:42
Source code for 0.2 delicious General Development (no feature request here!) 4 2006-07-21 10:10
Getting the source code AllenConquest General Development (no feature request here!) 1 2005-03-01 18:14
Example plugin source ShootingStar Plugins 1 2005-01-27 23:55


All times are GMT +1. The time now is 04:27.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden