xmltv/grab/uk_atlas tv_grab_uk_atlas,1.25,1.26

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

Modified Files:
	tv_grab_uk_atlas 
Log Message:
kill bad incoming data for series/ep numbers

Index: tv_grab_uk_atlas
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_atlas/tv_grab_uk_atlas,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** tv_grab_uk_atlas	1 Aug 2014 09:29:04 -0000	1.25
--- tv_grab_uk_atlas	15 Aug 2014 10:53:44 -0000	1.26
***************
*** 752,755 ****
--- 752,761 ----
  		$p_of = text_to_num($p_of) if defined $p_of;
  		
+ 		# validation check
+ 		undef($s) if defined $s && $s eq '0';
+ 		undef($e) if defined $e && $e eq '0';
+ 		undef($p) if defined $p && $p eq '0';
+ 		undef($p_of) if defined $p_of && $p_of eq '0';
+ 		
  		# re-base the series/episode/part numbers
  		$s-- if (defined $s && $s ne '');


------------------------------------------------------------------------------
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.