Bugs in WebEPG? (1 Viewer)

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,643
    775
    Göteborg
    Home Country
    Sweden Sweden
    I'm trying to update the grabber SE/www_comhem_se.xml but WebEPG is not behaving as I wish.

    Here's a program in HTML:
    <tr>

    <td style="vertical-align:top; width:40px"><p>01:00</p></td>

    <td style="width:15px;"><img src="/shared/1x1blank.gif" width="15" height="1"></td>
    <td style="vertical-align:top;width:100%" colspan="3">
    <p>
    <a name="1291578235"></a>
    <b>Boogie nights</b> (03:30)
    <br>
    Amerikanskt drama från 1997. Välkommen till Los Angeles sommaren 1977. Här är livet ett enda discoindränkt, kokainflödande jätteparty under gassande solsken. <br>Producerat �r 1997. <br />Regissör: Paul Thomas Anderson, Skådespelare: Burt Reynolds, Mark Wahlberg, Julianne Moore, John C Reilly, William H Macy.
    </p>

    </td>
    <td style="width: 50px; text-align:right;vertical-align:top">

    </td>
    </tr>
    It looks like the #END tag is messing up the grabber if I use the following template:
    Tags: BT
    Text:
    <td><#START></td>
    <td></td>
    <td>
    <b><#TITLE></b> (<#END>)
    <br>
    <#DESCRIPTION>
    </td>
    Result:
    #START: 01:00
    #TITLE: Boogie nights
    #END: 03:30)
    The #END tag is broken and there's no #DESCRIPTION tag at all.
    However if I omit the #END tag I get better result:
    Tags: BT
    Text:
    <td><#START></td>
    <td></td>
    <td>
    <b><#TITLE></b>
    <br>
    <#DESCRIPTION>
    </td>
    Result:
    #START: 01:00
    #TITLE: Boogie nights
    #DESCRIPTION: Amerikanskt drama från 1997. Välkommen till Los Angeles sommaren 1977. Här är livet ett enda discoindränkt, kokainflödande jätteparty under gassande solsken. Producerat �r 1997. Regissör: Paul Thomas Anderson, Skådespelare: Burt Reynolds, Mark Wahlberg, Julianne Moore, John C Reilly, William H Macy.
    This looks good in WebEPG Designer but when using the actual grabber (WebEPG.exe) the output TVGuide.xml file has double descriptions :confused:
    <programme start="20081005010000" channel="SVT2-svt2@svt.se">
    <title>Boogie nights</title>
    <desc>Amerikanskt drama från 1997. Välkommen till Los Angeles sommaren 1977. Här är livet ett enda discoindränkt, kokainflödande jätteparty under gassande solsken. Producerat �r 1997. Regissör: Paul Thomas Anderson, Skådespelare: Burt Reynolds, Mark Wahlberg, Julianne Moore, John C Reilly, William H Macy.
    Amerikanskt drama från 1997. Välkommen till Los Angeles sommaren 1977. Här är livet ett enda discoindränkt, kokainflödande jätteparty under gassande solsken. Producerat �r 1997. Regissör: Paul Thomas Anderson, Skådespelare: Burt Reynolds, Mark Wahlberg, Julianne Moore, John C Reilly, William H Macy.</desc>
    </programme>

    Does anyone know what I did wrong?
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,643
    775
    Göteborg
    Home Country
    Sweden Sweden
    • Thread starter
    • Moderator
    • #2
    I found the source of the double description problem. I was using a Actions/Modify channel tag to try to replace some invalid characters in the description tag but it just doubles the description and doesn't replace anything.

    <Actions>
    <Modify channel="*" field="#DESCRIPTION" search="�" action="Replace">ä</Modify>
    </Actions>
    When removed I now only get one description :)

    The problem with the #END tag still exists though.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    The parsing engine of WebEPG is not very straightforward and does not always work the way you think. The thing to keep in mind is that it builds a profile of the html which is a string consisting of a single letter for each tag (the first letter of the tag) with start tags mapped to lower case and end tags mapped to upper case (or the other way around, I don't remember). Then it uses regular expressions to search for the profile of your template.

    Anyway, if I find some time I will try to have a look at your grabber.
     

    Users who are viewing this thread

    Top Bottom