URL: http://www.mydigiguide.com/dgx/wbl.dll?h=4&a=301&dt=HEXTIME
Name: Digiguide TV Listings

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

# add day links directly into the HTML.
IssueHTMLPreProcess: {
  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;
}

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

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

