WebEPG Template help (1 Viewer)

moab

Portal Pro
April 22, 2008
250
9
California
Home Country
United States of America United States of America
Need some template help.
I use the A tag to select HTML source.
Below is an example of one program that the parser finds.

<a style="overflow: visible;"
href="http://television.aol.com/show/ktvu-channel-2-news-at-noon/79408/main"
title="KTVU Channel 2 News at Noon"
onclick="load_episode_details('','2','KTVU','79408','79408','10760','200805061900','200805061930'); return false">​
KTVU Channel 2 News at Noon</a>

Bold text shows my 3 fields
'200805061900' <#STARTXMLTV>
'200805061930' <#ENDXMLTV>
KTVU Channel 2 News at Noon <#TITLE>​

The <#TITLE> works fine in WebEPG designer.
However I don't know how to parse the <#STARTXMLTV> and <#ENDXMLTV>.
Is it possible and how?
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Need some template help.
    I use the A tag to select HTML source.
    Below is an example of one program that the parser finds.

    <a style="overflow: visible;"
    href="http://television.aol.com/show/ktvu-channel-2-news-at-noon/79408/main"
    title="KTVU Channel 2 News at Noon"
    onclick="load_episode_details('','2','KTVU','79408','79408','10760','200805061900','200805061930'); return false">​
    KTVU Channel 2 News at Noon</a>

    Bold text shows my 3 fields
    '200805061900' <#STARTXMLTV>
    '200805061930' <#ENDXMLTV>
    KTVU Channel 2 News at Noon <#TITLE>​

    The <#TITLE> works fine in WebEPG designer.
    However I don't know how to parse the <#STARTXMLTV> and <#ENDXMLTV>.
    Is it possible and how?

    The problem is trying to find something to key on to before the item you want to parse.

    Here the time it it hard to get the time fields alone, because the characters in front of the are not unique. So you will need to parse some of the other fields too:

    I think this should work:

    Code:
     <a <#X1:','>','<#X2>','<#X3>','<#X4>','<#X5>','<#STARTXMLTV>','<#ENDXMLTV:,'>><#TITLE></a>

    The X tags should be discarded (unless there is some useful data here?).

    I found a few bugs. Try the attached utils.dll.
     

    moab

    Portal Pro
    April 22, 2008
    250
    9
    California
    Home Country
    United States of America United States of America
    attachment

    Thanks for the help and the file. I got the WebEPG Designer working great.

    Now comes the hard part of building the grabber and adding the channels.
     

    Users who are viewing this thread

    Top Bottom