How to make a new grabber for WebEPG (1 Viewer)

Boogol

New Member
July 23, 2006
4
0
Belgium
Hello,

I tried to make a new grabber for Belgium using the one already existing. But now with another tv guide.
The existing one is www_telepocket_be.xml using the tv guide telepocket.
I created one www_teveblad_be.xml using the tv guide teveblad. Because there is more information for the dutch side of Belgium.

I tried it but apparently it does not work. I don't know what I did wrong. If someone could help me, here is the content of my grabber:

<?xml version="1.0" encoding="utf-8"?>



<profile>
<section name="ChannelList">


<entry name="een.be">TV1</entry>
<entry name="ketnet.be">Ketnet</entry>
<entry name="canvas.be">Canvas</entry>
<entry name="vtm.be">VTM</entry>
<entry name="kanaaltwee.be">Kanaaltwee</entry>
<entry name="vt4.be">VT4</entry>
<entry name="vijftv.be">VijfTV</entry>
<entry name="vitaya.be">Vitaya</entry>
<entry name="nationalgeographic.nl">NationalGeographic</entry>
<entry name="vitaya.be">Vitaya</entry>
<entry name="ned1@omroep.nl">Nederland1</entry>
<entry name="ned2@omroep.nl">Nederland2</entry>
<entry name="ned3@omroep.nl">Nederland3</entry>



<entry name="la1.be">LA%20UNE</entry>
<entry name="ladeux.be">La%20Deux</entry>
<entry name="tvi@rtl.be">RTL%20TVI</entry>
<entry name="tf1.fr">TF1</entry>
<entry name="france2.fr">France2</entry>
<entry name="france3.fr">France3</entry>


<entry name="bbc1@bbc.co.uk">BBC1</entry>
<entry name="bbc2@bbc.co.uk">BBC2</entry>
<entry name="cnni-emea@cnn.com">CNN</entry>


<entry name="mtv.nl">MTV</entry>
<entry name="tmf.be">TMF</entry>
<entry name="jim.be">JimTV</entry>
</section>


<section name="Listing">
<entry name="BaseURL">http://www.teveblad.be/ndl/</entry>
<entry name="SearchURL">zender.asp?move=full&amp;channel=[ID]&amp;dag=[_M]/[_D]/[YYYY]</entry>


<entry name="Start">Complet</entry>


<entry name="End"></body></entry>


<entry name="Template">
<tr>
<td></td>
<td><#START></td>
<td><#END></td>
<td><#TITLE></td>
<td><#GENRE></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td><#DESCRIPTION></td>
<td></td>
</tr></entry>
</section>
<section name="Info">
<entry name="GuideDays">3</entry>
<entry name="Language">nl</entry>
<entry name="SiteDescription">Teveblad</entry>
<entry name="TimeZone">W. Europe Standard Time</entry>
</section>
</profile>
 

mbuzina

Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Boogol said:
    <?xml version="1.0" encoding="utf-8"?>




    <entry name="End"></body></entry>


    <entry name="Template">
    <tr>
    <td></td>
    <td><#START></td>
    <td><#END></td>
    <td><#TITLE></td>
    <td><#GENRE></td>
    <td></td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><#DESCRIPTION></td>
    <td></td>
    </tr></entry>
    </section>
    <section name="Info">
    <entry name="GuideDays">3</entry>
    <entry name="Language">nl</entry>
    <entry name="SiteDescription">Teveblad</entry>
    <entry name="TimeZone">W. Europe Standard Time</entry>
    </section>
    </profile>

    Basically your XML is not correct and not valid.
    Code:
        <entry name="End"></body></entry>
    Here you have a closing </body> tag intermixed with your entry tag. Even if there was an opening body tag, you are not allowed to "overlap" tag opening and closing (the following is invalid: Text)
     

    Boogol

    New Member
    July 23, 2006
    4
    0
    Belgium
    Hy,

    I don't really understand what you mean.
    I copied this from a working grabber. I only changed the channels.

    Could you tell me what i need to change exactly?

    Thx
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Hi,

    Since I am not 100% aware of the format needed by the parser, but it requires valid XML definitions. In XML you define "values" by specifying tags. A tag starts with "<" + Name + Optional Attributes + ">". You then enter contents (text or more tags) and then close the tag with "</" + Name + ">". This means that the text in a tag may not contain "<" or ">" (and also "&" may not be used). To specify these characters use:
    "&lt;" for < (withouth quotes)
    "&gt;" for > (withouth quotes)
    "&amp;" for & (withouth quotes)

    I guess that should get you further (at least some way). It might be worthwhile reading a bit on XML (there are many introductionary articles on the web).

    ** EDIT **
    Just read that you only exchanged some names. I guess that you copied the definition for a different listing provider to your provider? That would only work, if the markup (html) of the websites are identical.
     

    James

    Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    I assume the &#60 ; and &#62 ; were replaced with '<' and '>' by the forum?

    If your config file doesn't have these escape codes in it. Then you will have a problem. Make sure you can open the .xml in a web browser to test if the XML syntax is correct.
     

    Boogol

    New Member
    July 23, 2006
    4
    0
    Belgium
    James,

    Indeed the characters were replaced by the forum.

    When I simply click on the xml file it opens correctly.

    I will look at the log file when I'm home.
    Could you just remind me were the log file is located? :?

    Thx for the help so far
     

    Boogol

    New Member
    July 23, 2006
    4
    0
    Belgium
    This is what i found out:

    Some of the sites are found now but the ones here stiil do not work:

    24/07/2006 18:11:19 [ERROR] WebEPG: ChannelId: een.be grabber error
    24/07/2006 18:11:21 [ERROR] WebEPG: ChannelId: france2.fr grabber error
    24/07/2006 18:11:21 [ERROR] WebEPG: ChannelId: jim.be grabber error
    24/07/2006 18:11:21 [ERROR] WebEPG: ChannelId: kanaaltwee.be grabber error
    24/07/2006 18:11:22 [ERROR] WebEPG: ChannelId: canvas.be grabber error
    24/07/2006 18:11:23 [ERROR] WebEPG: ChannelId: ladeux.be grabber error
    24/07/2006 18:11:23 [ERROR] WebEPG: ChannelId: la1.be grabber error
    24/07/2006 18:11:23 [ERROR] WebEPG: ChannelId: mtv.nl grabber error
    24/07/2006 18:11:23 [ERROR] WebEPG: ChannelId: ned1@omroep.nl grabber error
    24/07/2006 18:11:23 [ERROR] WebEPG: ChannelId: ned2@omroep.nl grabber error
    24/07/2006 18:11:23 [ERROR] WebEPG: ChannelId: ned3@omroep.nl grabber error
    24/07/2006 18:11:23 [ERROR] WebEPG: ChannelId: tvi@rtl.be grabber error
    24/07/2006 18:11:26 [ERROR] WebEPG: ChannelId: tmf.be grabber error
    24/07/2006 18:11:29 [ERROR] WebEPG: ChannelId: vijftv.be grabber error
    24/07/2006 18:11:30 [ERROR] WebEPG: ChannelId: vitaya.be grabber error
    24/07/2006 18:11:32 [ERROR] WebEPG: ChannelId: vt4.be grabber error
    24/07/2006 18:11:35 [ERROR] WebEPG: ChannelId: vtm.be grabber error

    Any idea why this is?
    Is it because of the name or something else?
    Thx
     

    Users who are viewing this thread

    Top Bottom