Zita Grabber questions (1 Viewer)

THDBASED

Portal Pro
January 30, 2006
469
2
Home Country
Belgium Belgium
Ok I am almost done with making a new grabber (from www.zita.be). There are a lot of channels on this website that are very imported for Belgian and Dutch users...

I am having some trouble with the template part. I sorted out the part in the source code where the title and description is placed:

Code:
-----------------------------------------------------------------------------------------------------------------
<tr>
<td align="right" width="75" valign="top"><span class="txt_red_bold">23:15</span></td>
<td width="40"><img src="static/images/space.gif" alt="" width="30" height="1" border="0" /></td>
<TD>
<table border="0" cell spacing="0" cellpadding="0">
<tr>
<td>
<a name="event34826898"></a> 
<span class="txt_red"><a href="event/detail.html?id=34826898" class="datumblokhl">The Bill</a></span>
</td>
<td rowspan="2" valign="top">
<img src="static/images/space.gif" alt="" width="10" height="1" />
</td>
</tr>
<tr>
<td>								
Britse politiereeks over het wel en wee van de geüniformeerde politie en de recherche-afdeling van een politiekantoor v
</td>
</tr>
</table>
<br/>
<em>
(jg 18/afl 49). DI Nixon is ervan overtuigd dat Baxter de seriemoordenaar is, maar DS Chiu is sceptisch.</em>
</td>
</tr>
<tr>
<td colspan="3"><img src="static/images/zender_line.gif" width="588" alt="" height="13" border="0" /></td>
</tr>
-----------------------------------------------------------------------------------------------------------------
<tr>
<td align="right" width="75" valign="top"><span class="txt_red_bold">00:05</span></td>
<td width="40"><img src="static/images/space.gif" alt="" width="30" height="1" border="0" /></td>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<a name="event34826899"></a> 
<span class="txt_red"><a href="event/detail.html?id=34826899" class="datumblokhl">De rode loper</a></span>
</td>
<td rowspan="2" valign="top">
<img src="static/images/space.gif" alt="" width="10" height="1" />
</td>
</tr>
<tr>
<td>								
Mediamagazine met actuele berichten over de verschillende binnen- en buitenlandse sterren uit de amusementswereld.
</td>
</tr>
</table>
<br/><em></em>
</td>
</tr>
<tr>
<td colspan="3"><img src="static/images/zender_line.gif" width="588" alt="" height="13" border="0" /></td>
</tr>
-----------------------------------------------------------------------------------------------------------------

The problem is now that there are differences between 2 programs. One program has some episode number related information but an other program for example hasn't...

Could someone help me with making this template, James maybe :)

Thanks!

THDBASED
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Is the only different the text between the <em></em> tags?

    This is not really a problem, because the HTML is the same in both cases. Only the text between the tags is different. This will not effect the parsing at all.

    Replace the start time with <#START>, the Title with <#TITLE> and the description with <#DESCRIPTION> and you've got yourself a template :)
     

    THDBASED

    Portal Pro
    January 30, 2006
    469
    2
    Home Country
    Belgium Belgium
    First of all thanks for helping!

    when I look at an existing Belgian grabber the template section has all these wierd tags in it, do I need to do this too? Change the HTML tags into this coding...

    Sample teveblad grabber:

    Code:
            &lt;tr&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;td&gt;&lt;#START&gt;&lt;/td&gt;
            &lt;td&gt;&lt;#END&gt;&lt;/td&gt;
            &lt;td&gt;&lt;#TITLE&gt;&lt;/td&gt;
            &lt;td&gt;&lt;#GENRE&gt;&lt;/td&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;/tr&gt;
     

    James

    Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Yes. This is because we are storing the HTML source in an XML file which uses the same basic format as HTML. So we need to encode the special characters so that won't unset the XML file.

    There is a radio button in the WebEPG-Designer to convert the template into this format (labeled Xml).
     

    THDBASED

    Portal Pro
    January 30, 2006
    469
    2
    Home Country
    Belgium Belgium
    Would this work?
    I tried this with the designer program, but I don't get any results. Could you give it a go?

    <B>GET:</B>

    http://epg.telenet.be/channeloverview/channelOverview.html?showDate=[_D]-[_M]-[YYYY]&beginOffset=7&nextDateLine=false&previousDateLine=false&scheduleId=[ID]

    <B>Begin tag:</B>
    <body>

    <B>End tag:</B>
    </body>

    <B>Template:</B>

    Code:
    <tr>
    <td align="right" width="75" valign="top"><span class="txt_red_bold"><#START></span></td>
    <td width="40"><img src="static/images/space.gif" alt="" width="30" height="1" border="0" /></td>
    <TD>
    <table border="0" cell spacing="0" cellpadding="0">
    <tr>
    <td>
    <a name="event34826898"></a> 
    <span class="txt_red"><a href="event/detail.html?id=34826898" class="datumblokhl"><#TITLE></a></span>
    </td>
    <td rowspan="2" valign="top">
    <img src="static/images/space.gif" alt="" width="10" height="1" />
    </td>
    </tr>
    <tr>
    <td>		
    <#DESCRIPTION>
    </td>
    </tr>
    </table>
    <br/>
    <em>
    <#EPISODE>. <#SUBTITLES></em>
    </td>
    </tr>
    <tr>
    <td colspan="3"><img src="static/images/zender_line.gif" width="588" alt="" height="13" border="0" /></td>
    </tr>
     

    James

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

    Get: http://epg.telenet.be/channeloverview/channelOverview.html?showDate=
    Start: scheduleId (optional works without this)
    Tags: TAE or TSE
    Template:
    Code:
    <tr><td><span><#START></span></td> <td ><img></td> 
    <td>
    <table>
    <tr>
    <td><a></a><span><a><#TITLE></a></span></td>
    <td><img></td></tr><tr><td><#DESCRIPTION></td>
    </tr>
    </table>
    <em><#EPISODE>.<#SUBTITLES></em></td>
    </tr><tr><td><img></td></tr>
    some of the tags at the bottom can be remove too

    This works here in designer, but the Episode will most likely not work well.
     

    THDBASED

    Portal Pro
    January 30, 2006
    469
    2
    Home Country
    Belgium Belgium
    Thx for helping me out but I can't see anything in the designer program. Shouldn't the GET url contain the [ID] and date tags?
    I can see the grabber I created in the config program but that is as far as it goes, I won't download any data...

    The detail template is not finished yet, it is still the one from teveblad.be. I am still trying to figure everything out, the documentation is hard to figure out...

    I have attached my XML file.
     

    Users who are viewing this thread

    Top Bottom