| | #1 (permalink) |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| 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? |
| | |
| | #3 (permalink) | |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| Quote:
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 ![]() | |
| | |
| | #4 (permalink) |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| 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 ![]() |
| | |
| | #5 (permalink) |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| 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)? |
| | |
| | #6 (permalink) |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| 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 ![]() |
| | |
| | #7 (permalink) |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| 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. |
| | |
| | #8 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts
| 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 |
| | |
| | #9 (permalink) | |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| Quote:
![]() | |
| | |
| | #10 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts
| 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>
Cheers, /James |
| | |
![]() |
| Bookmarks |
| Tags |
| source, xmltv |
| Thread Tools | |
| Display Modes | |
| |
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 |