How to customize end time in Grabber file_ (1 Viewer)

petsa

MP Donator
  • Premium Supporter
  • January 23, 2007
    588
    15
    Stockholm
    Home Country
    Sweden Sweden
    Hi!

    As you know sometimes a program without an end time will extend to the next program in the EPG. The webpage I am looking at provide end time when the program is shorter than the slot before the next show starts, see http://svt.se/svt/jsp/Crosslink.jsp?d=19388&selectedDate=20070128&shortVersion=true&x=19&y=4.

    Since this end time is "optional" I'm not sure how to write my grabber to find it. For most of the programs there won't be an end time and it should extend to the next show, but for some few occasions there is an end time in the EPG that I would like to catch and process.

    Any ideas or suggestions?

    Thanks

    /Peter
     

    petsa

    MP Donator
  • Premium Supporter
  • January 23, 2007
    588
    15
    Stockholm
    Home Country
    Sweden Sweden
    I forgot...

    I was thinking perhaps I can use a regexp and <search> but I'm not quite sure how to set it up.

    /Peter
     

    James

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

    Here is a template that seems to work for me:

    Tags="TP"
    Code:
    <tr>
        <td><#START><br /><#END:-,></td>
        <td><h2><a ><#TITLE></a></h2>
        <div>
            <p><#DESCRIPTION>
            </p>
            <p>Textat sid. 793</p>
        </div></td>
        <td><img  /></td>
     </tr>

    Let me know when you have it all working and I'll include it in the SVN :)

    /James
     

    Users who are viewing this thread

    Top Bottom