xmltv/grab/uk_tvguide tv_grab_uk_tvguide,1.17,1.18
Geoff <[email protected]> Fri, 05 Aug 2016 17:26:58 +0000
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/grab/uk_tvguide
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv8140
Modified Files:
tv_grab_uk_tvguide
Log Message:
Fix break when episode title is "Category ..." [bug #509]
Index: tv_grab_uk_tvguide
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_tvguide/tv_grab_uk_tvguide,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** tv_grab_uk_tvguide 30 Jun 2016 19:46:57 -0000 1.17
--- tv_grab_uk_tvguide 5 Aug 2016 17:26:56 -0000 1.18
***************
*** 420,425 ****
# <span class="season">6:00 am </span>
# but this just doesn't sound right to me (i.e. I think it might change again), so let's try both ways
! #
! my $showstart = $show->look_down('_tag' => 'span', 'class' => 'tvchannel');
if (!$prog{'start'}) {
my ($h, $i, $a) = $showstart->as_text =~ /(\d*):(\d*)\s*(am|pm)/;
--- 420,426 ----
# <span class="season">6:00 am </span>
# but this just doesn't sound right to me (i.e. I think it might change again), so let's try both ways
! # @ 2016-08-05 looks like this is permanent
! # my $showstart = $show->look_down('_tag' => 'span', 'class' => 'tvchannel');
! my $showstart = $show->look_down('_tag' => 'span', 'class' => 'season');
if (!$prog{'start'}) {
my ($h, $i, $a) = $showstart->as_text =~ /(\d*):(\d*)\s*(am|pm)/;
***************
*** 440,444 ****
# category
# <span class="tvchannel">Category </span><span class="programmetext">General Movie/Drama</span>
! my $showcategory = $show->look_down('_tag' => 'span', 'class' => 'tvchannel', sub { $_[0]->as_text =~ /Category/ } );
if ($showcategory) {
$showcategory = $showcategory->right;
--- 441,445 ----
# category
# <span class="tvchannel">Category </span><span class="programmetext">General Movie/Drama</span>
! my $showcategory = $show->look_down('_tag' => 'span', 'class' => 'tvchannel', sub { $_[0]->as_text =~ /^Category\s*$/ } );
if ($showcategory) {
$showcategory = $showcategory->right;
------------------------------------------------------------------------------