xmltv/grab/eu_epgdata tv_grab_eu_epgdata,1.34,1.35

Jan Schneider <[email protected]>
Newsgroups gmane.comp.tv.xmltv.cvs
Message-ID <[email protected]>
Update of /cvsroot/xmltv/xmltv/grab/eu_epgdata
In directory vz-cvs-3.sog:/tmp/cvs-serv25848/grab/eu_epgdata

Modified Files:
	tv_grab_eu_epgdata 
Log Message:
Improve error handling.


Index: tv_grab_eu_epgdata
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/eu_epgdata/tv_grab_eu_epgdata,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** tv_grab_eu_epgdata	8 Jun 2012 13:16:12 -0000	1.34
--- tv_grab_eu_epgdata	8 Jun 2012 13:16:28 -0000	1.35
***************
*** 259,265 ****
  our $writer = new XMLTV::Writer(%w_args);
  
- 
- our @xmlfiles = downloadepg($opt->{days},$opt->{offset},$pin);
  prepareinclude($conf,$opt);
  # it looks like we can also extract the language from the file 
  # name of the epg data
--- 259,265 ----
  our $writer = new XMLTV::Writer(%w_args);
  
  prepareinclude($conf,$opt);
+ our @xmlfiles = downloadepg($opt->{days},$opt->{offset},$pin);
+ exit 1 unless @xmlfiles;
  # it looks like we can also extract the language from the file 
  # name of the epg data
***************
*** 304,311 ****
          else {
              warn "No more zip files available for download\n" unless $opt->{quiet};
!             return unzip(@filenames);
          }
  	$i++;
      }
      return unzip(@filenames);
  }
--- 304,312 ----
          else {
              warn "No more zip files available for download\n" unless $opt->{quiet};
!             last;
          }
  	$i++;
      }
+     warn "Your PIN will expire around ",  time2str("%C", $expiry_date),"\n" unless $opt->{quiet};
      return unzip(@filenames);
  }
***************
*** 320,324 ****
      warn "Downloading include zip file\n" unless $opt->{quiet};
      getstore($includeurl, $tmp . "includezip");
-     warn "Your PIN will expire around ",  time2str("%C", $expiry_date),"\n" unless $opt->{quiet};
      my @zipfiles=( $tmp . "includezip");
      unzip(@zipfiles)
--- 321,324 ----


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
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.