xmltv/grab/uk_guardian tv_grab_uk_guardian, 1.10, 1.11
Geoff <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/grab/uk_guardian
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20718
Modified Files:
tv_grab_uk_guardian
Log Message:
Fix for (i) source website change & (ii) too large an --offset (bug 490)
Index: tv_grab_uk_guardian
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_guardian/tv_grab_uk_guardian,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** tv_grab_uk_guardian 23 Jan 2014 13:11:38 -0000 1.10
--- tv_grab_uk_guardian 4 Aug 2014 08:31:55 -0000 1.11
***************
*** 212,216 ****
# <title>BBC 2 TV listings | TV and radio | The Guardian </title>
my $channeltitle = $tree->look_down('_tag' => 'title')->as_text;
! $channeltitle =~ m/^(.*)\sTV listings/ and $channeltitle = $1;
debug "TITLE= ".$channeltitle;
--- 212,216 ----
# <title>BBC 2 TV listings | TV and radio | The Guardian </title>
my $channeltitle = $tree->look_down('_tag' => 'title')->as_text;
! $channeltitle =~ m/^(.*\|\|)?(.*)\sTV listings/i and $channeltitle = $2;
debug "TITLE= ".$channeltitle;
***************
*** 225,229 ****
last;
}
! my $channelname = $channelsched->as_text;
debug $channelname;
--- 225,229 ----
last;
}
! my $channelname = (defined $channelsched ? $channelsched->as_text : $channeltitle);
debug $channelname;
***************
*** 231,240 ****
my @shows;
my $show = $channelsched;
! do {
! $show = $show->right();
! if ( $show && $show->tag() eq 'span' && $show->attr('class') eq 'tvg_show' ) {
! push @shows, $show;
! }
! } while defined $show && !( $show->tag() eq 'div' && $show->attr('class') eq 'tvg_channelname' );
#
# end workaround
--- 231,242 ----
my @shows;
my $show = $channelsched;
! if (defined $show) {
! do {
! $show = $show->right();
! if ( $show && $show->tag() eq 'span' && $show->attr('class') eq 'tvg_show' ) {
! push @shows, $show;
! }
! } while defined $show && !( $show->tag() eq 'div' && $show->attr('class') eq 'tvg_channelname' );
! }
#
# end workaround
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk