Justin,

Here's my Digiguide UK TV Listings site file, which is working for me. Looks 
like there's a load of stuff in there which isnt needed any more, but it 
does actually work!

Regards, Andy


>From: [EMAIL PROTECTED] (Justin Mason)
>To: [EMAIL PROTECTED]
>Subject: [scoop] massive site file cleanup
>Date: Fri, 18 Jan 2002 15:51:04 +1100
>
>Folks -- just did a spring-clean of the 'site_samples' dir, throwing
>out lots of sites that now give 404s, and moving some broken ones
>into the 'broken' dir.


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
URL: http://www.mydigiguide.com/dgx/wbl.dll?h=4&a=301&dt=HEXTIME
Name: Digiguide TV Listings

Levels: 2
ImageURL: /dgx/avantgo/.*.gif
StoryURL: http://www.mydigiguide.com/dgx/wbl.dll\?.*

# add day links directly into the HTML.
IssueHTMLPreProcess: {
        s/wipeout/crapout2/gsi;
  my $now = time();
  my $hextimenow = sprintf("%8x", $now);
  my $hextimepl1 = sprintf("%8x", $now + (24*60*60) * 1);
  my $hextimepl2 = sprintf("%8x", $now + (24*60*60) * 2);
  s{Pick your channel from the list below}{
    '<p>Day: '
    .'<a 
href="http://www.mydigiguide.com/dgx/wbl.dll?h=4&a=301&dt='.$hextimenow.'">Today</a> 
/ '
    .'<a 
href="http://www.mydigiguide.com/dgx/wbl.dll?h=4&a=301&dt='.$hextimepl1.'">Tomorrow</a>
 
/ '
    .'<a 
href="http://www.mydigiguide.com/dgx/wbl.dll?h=4&a=301&dt='.$hextimepl2.'">Day 
After</a>'
    .'</p>'
  }gies;
}

StoryHTMLPreProcess: {
        s~</td><td width=2>&nbsp;</td><td>~&nbsp;~gsi;
}

URLProcess: {
  s/HEXTIME/ sprintf("%8x", time()); /ge;
}

# don't trim tables, they're used to render the page.
StoryUseTableSmarts: 0
ContentsUseTableSmarts: 0
# TableRender: keep
TableRender: flatten

Reply via email to