xmltv/grab/nl tv_grab_nl,1.79,1.80

Geoff <[email protected]>
Newsgroups gmane.comp.tv.xmltv.cvs
Message-ID <[email protected]>
Update of /cvsroot/xmltv/xmltv/grab/nl
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13918

Modified Files:
	tv_grab_nl 
Log Message:
(minor) fix empty category value

Index: tv_grab_nl
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/nl/tv_grab_nl,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** tv_grab_nl	1 May 2014 18:18:15 -0000	1.79
--- tv_grab_nl	9 May 2014 10:30:14 -0000	1.80
***************
*** 435,438 ****
--- 435,439 ----
  sub tidy( $ ) {
      my $html = shift;
+     return $html if !defined $html;	
      $html =~ s/(\s)\xA0/$1/og;    # replace 'space-&nbsp;' with 'space'
      $html =~ s/\xA0/ /og;         # replace any remaining &nbsp; with space
***************
*** 647,651 ****
          if ( scalar @{ $p->{'genres'} } ) {
              foreach (@{ $p->{'genres'} }) {
!                 push @{ $p_out->{'category'} }, [ encode($ENCODING, $_), $LANG ];
  	    }
    	}
--- 648,652 ----
          if ( scalar @{ $p->{'genres'} } ) {
              foreach (@{ $p->{'genres'} }) {
!                 push @{ $p_out->{'category'} }, [ encode($ENCODING, $_), $LANG ]  if ($_ ne '');
  	    }
    	}


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.