My first WebEPG grabber does not work (1 Viewer)

Sasler

Portal Pro
October 19, 2006
72
0
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?
 

Sasler

Portal Pro
October 19, 2006
72
0
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/MediaPortal_Setup_Customising_WebEPG

(at the bottom under testing).

Cheers,

/James

:D 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 :oops:. A help file would be nice.
 

Hawkeye

Portal Pro
January 29, 2005
530
97
Halle (Saale)
Home Country
Germany Germany
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.

And yes, I've downloaded the WebEPG-Designer, but I don't know how to use it... a bit too complicated for me :oops:. 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...
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    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

    Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    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.
     

    Users who are viewing this thread

    Top Bottom