xmltv/grab/eu_epgdata tv_grab_eu_epgdata,1.38,1.39

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

Modified Files:
	tv_grab_eu_epgdata 
Log Message:
Fix warnings if channel names are incomplete (Bug #3544236).


Index: tv_grab_eu_epgdata
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/eu_epgdata/tv_grab_eu_epgdata,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** tv_grab_eu_epgdata	7 Feb 2013 20:14:00 -0000	1.38
--- tv_grab_eu_epgdata	7 Feb 2013 20:15:53 -0000	1.39
***************
*** 580,591 ****
           $chanid = $internalchanid;
      }
!     my $name1 = $sendung->first_child('ch11')->text;
!     my $name2 = $sendung->first_child('ch0')->text;
!     my $name3 = $sendung->first_child('ch1')->text;
      foreach my $channel (@{$conf->{channel}}) {
          if ($channel eq $chanid) {
              my %ch = (
                  'id' => $chanid,
!                 'display-name' => [ [$name1], [$name2], [$name3] ]
              );
              $writer->write_channel(\%ch);
--- 580,598 ----
           $chanid = $internalchanid;
      }
!     my @names;
!     if ($sendung->first_child('ch11')->text) {
!         push(@names, [ $sendung->first_child('ch11')->text ]);
!     }
!     if ($sendung->first_child('ch0')->text) {
!         push(@names, [ $sendung->first_child('ch0')->text ]);
!     }
!     if ($sendung->first_child('ch1')->text) {
!         push(@names, [ $sendung->first_child('ch1')->text ]);
!     }
      foreach my $channel (@{$conf->{channel}}) {
          if ($channel eq $chanid) {
              my %ch = (
                  'id' => $chanid,
!                 'display-name' => @names
              );
              $writer->write_channel(\%ch);


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
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.