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-06, 15:30   #1 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts


Question My first WebEPG grabber does not work

I'm trying to do Lithuanian channels with WebEPG, but I can't get it to work here is myu simple code:


<?xml version="1.0" encoding="utf-8" ?>
- <Grabber>
<Info language="lt" availableDays="1" timezone="E. Europe Standard Time" />
- <Channels>
<Channel id="TV3@tv.lt" siteId="29" />
</Channels>
- <Listing type="Html">
<Site url="http://www.tv.lt/program.asp?channel=[ID]&date=[YYYY].[MM].[DD]" post="" external="false" encoding="" />
- <Html>
- <Template name="default" start="channel_day" end="</TABLE>">
- <SectionTemplate tags="T">
<TemplateText><TR><TD align="right" valign="top">#START</TD> <TD></TD><TD>#TITLE</TD></TR></TemplateText>
</SectionTemplate>
</Template>
</Html>
</Listing>
</Grabber>

This is the result I get:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE tv (View Source for full doctype...)>
- <tv generator-info-name="WebEPG">
- <channel id="TV3@tv.lt">
<display-name>TV3</display-name>
</channel>
</tv>




Any ideas what i'm doing wrong?

Last edited by Sasler; 2007-03-06 at 15:34.
Sasler is offline   Reply With Quote
Old 2007-03-06, 19:43   #2 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Hi Sasler,

You need to put '<' and '>' around the #START and #TITLE tags. If you are not already using it I would suggest using the WebEPG-Designer which you can download from the wiki here:

http://wiki.team-mediaportal.com/Med...omising_WebEPG

(at the bottom under testing).

Cheers,

/James
James is offline   Reply With Quote
Old 2007-03-07, 08:11   #3 (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 need to put '<' and '>' around the #START and #TITLE tags. If you are not already using it I would suggest using the WebEPG-Designer which you can download from the wiki here:

http://wiki.team-mediaportal.com/Med...omising_WebEPG

(at the bottom under testing).

Cheers,

/James
now it works!

Here is an other problem:

<?xml version="1.0" encoding="utf-8" ?>
- <Grabber>
<Info language="lt" availableDays="4" timezone="E. Europe Standard Time" />
- <Channels>
<Channel id="TV3@delfi.lt" siteId="11" />
</Channels>
- <Listing type="Html">
<Site url="http://whatson.delfi.lt/events/tv/program.php?id=[ID]&date=[YYYY]-[MM]-[DD]" post="" external="false" encoding="" />
- <Html>
- <Template name="default" start="<td valign="top" colspan="3"><font class="whatsonTVProgramTitle">" end="</font></td>">
- <SectionTemplate tags="B">
<TemplateText><b><#START></b> </b> <#TITLE> <br /></TemplateText>
</SectionTemplate>
</Template>
</Html>
</Listing>
</Grabber>



As you can see this site uses <b> as the only means to find the info. Is there any way to use this site? As above it does not work.

And yes, I've downloaded the WebEPG-Designer, but I don't know how to use it... a bit too complicated for me . A help file would be nice.

Last edited by Sasler; 2007-03-07 at 08:14.
Sasler is offline   Reply With Quote
Old 2007-06-29, 08:03   #4 (permalink)
Portal Member
 
zebons's Avatar
 
Join Date: Feb 2006
Posts: 588
Thanks: 5
Thanked 63 Times in 45 Posts


Default

Quote:
Originally Posted by Sasler View Post
And yes, I've downloaded the WebEPG-Designer, but I don't know how to use it... a bit too complicated for me . A help file would be nice.
+1
zebons is offline   Reply With Quote
Old 2007-06-29, 10:24   #5 (permalink)
Portal Member
 
Hawkeye's Avatar
 
Join Date: Jan 2005
Location: Halle - Germany
Age: 30
Posts: 269
Thanks: 17
Thanked 4 Times in 4 Posts

Country:

My System

Send a message via ICQ to Hawkeye
Default

Quote:
Originally Posted by Sasler View Post
Here is an other problem:

<?xml version="1.0" encoding="utf-8" ?>
- <Grabber>
<Info language="lt" availableDays="4" timezone="E. Europe Standard Time" />
- <Channels>
<Channel id="TV3@delfi.lt" siteId="11" />
</Channels>
- <Listing type="Html">
<Site url="http://whatson.delfi.lt/events/tv/program.php?id=[ID]&date=[YYYY]-[MM]-[DD]" post="" external="false" encoding="" />
- <Html>
- <Template name="default" start="<td valign="top" colspan="3"><font class="whatsonTVProgramTitle">" end="</font></td>">
- <SectionTemplate tags="B">
<TemplateText><b><#START></b> </b> <#TITLE> <br /><br /></TemplateText>
</SectionTemplate>
</Template>
</Html>
</Listing>
</Grabber>



As you can see this site uses <b> as the only means to find the info. Is there any way to use this site? As above it does not work.
Delete the red marked tag ending and add the green marked tag - that should work.

Quote:
Originally Posted by Sasler View Post
And yes, I've downloaded the WebEPG-Designer, but I don't know how to use it... a bit too complicated for me . A help file would be nice.
I think it's pretty intuitive:
1. Copy paste the url of your page to the GET field (if the page works with POST, enter the parameters in this field)
2. Click on load - source code is imported
3. Enter the template (e.g. copy paste the source of one show and replace title and so on by the variables)
4. Enter tags to be searched in (and maybe a start and end mark for the source code search)
5. Click on parse to test the template
6. Change template if it doesn't work...
__________________
I didn't do it, nobody saw me do it, there's no way you can prove anything!!!


Last edited by Hawkeye; 2007-06-29 at 12:56.
Hawkeye is offline   Reply With Quote
Old 2007-06-30, 17:17   #6 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

I'm always happy when I see people help each other in the forum I also means I have to do less work

I tried to make the tool very simple to use, but Hawkeye's has now provided some nice instructions.

Only one small change. The Start and End boxes in the html source section needed to be filled in before loading the source. I know this not the way the screen layout is designed, but generally the start/end filter option is not needed so much.

I'm sure I made a post about the designer tool and asked for comments and I don't think I got any. So I assumed all was well.
James is offline   Reply With Quote
Old 2007-06-30, 21:03   #7 (permalink)
Portal Member
 
Hawkeye's Avatar
 
Join Date: Jan 2005
Location: Halle - Germany
Age: 30
Posts: 269
Thanks: 17
Thanked 4 Times in 4 Posts

Country:

My System

Send a message via ICQ to Hawkeye
Default

Quote:
Originally Posted by James View Post
Only one small change. The Start and End boxes in the html source section needed to be filled in before loading the source.
didn't know that...

Quote:
Originally Posted by James View Post
I know this not the way the screen layout is designed, but generally the start/end filter option is not needed so much.
and this should be the reason...
__________________
I didn't do it, nobody saw me do it, there's no way you can prove anything!!!

Hawkeye is offline   Reply With Quote
Old 2007-06-30, 22:33   #8 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Hi Sasler,

I jsut had a look at this site and I cannot get it to work , because there it no closing tag behind the title. Currently WebEPG does not view <br>'s as tag for template matching they are converted into new line characters. This limitation prevents it getting the title, so that only the time is parsed.

I will look into a way I can improve the pasing engine to handle this case. I have just had a good idea for some improvements. However, this will take a while and no promises.
James is offline   Reply With Quote
Reply

Bookmarks

Tags
grabber, webepg

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
WebEPG grabber for Oztivo sockman WebEPG 17 2007-03-08 11:03
How to make a new grabber for WebEPG Boogol WebEPG 9 2006-07-30 07:31
Need help writing a WebEPG grabber RubaDuck7 WebEPG 2 2006-06-21 00:16
.se WebEPG grabber SweMart The old Bugreport Forum 12 2006-06-19 01:05
WEBEPG: Italian grabber homerlivorno WebEPG 3 2005-10-13 10:15


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


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