xmltv/grab/es_laguiatv tv_grab_es_laguiatv, 1.22, 1.23

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

Modified Files:
	tv_grab_es_laguiatv 
Log Message:
fix for no programme info (i.e. prevent 404)

Index: tv_grab_es_laguiatv
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/es_laguiatv/tv_grab_es_laguiatv,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** tv_grab_es_laguiatv	4 Feb 2014 14:00:42 -0000	1.22
--- tv_grab_es_laguiatv	6 Feb 2014 12:55:30 -0000	1.23
***************
*** 543,550 ****
  	}
  
! 	if (!$bump_start_day && bump_start_day($cur,$next)) {
! 	    #$bump_start_day=1;
! 	    $date = UnixDate(DateCalc($date,"+ 1 day"),'%Q');
! 	}
      }
      return @r;
--- 543,550 ----
  	}
  
! #	if (!$bump_start_day && bump_start_day($cur,$next)) {
! #	    #$bump_start_day=1;
! #	    $date = UnixDate(DateCalc($date,"+ 1 day"),'%Q');
! #	}
      }
      return @r;
***************
*** 695,698 ****
--- 695,710 ----
  				last if $url eq 'javascript:void(0);' ;
  				
+ 				# handle no programme info situation (probably means "Close"?) :
+ 				# <tr>
+ 				#  <th scope="col"> 04:00</th>
+ 				#  <td class="" data-type="programas">
+ 				#    <div class="programa">
+ 				#      <h2><a href="http://laguiatv.abc.es/programas/-72840/" title="*">*</a></h2>
+ 				#      <p> 04:00 a  06:00</p>
+ 				#    </div>
+ 				#  </td>
+ 			  #</tr>
+ 				last if $url =~ m%programas/-\d*/$%;
+ 				
  				# parse the page to a document object
  				#  HTML::Parse keeps reporting "Parsing of undecoded UTF-8 will give garbage when decoding entities" yet I can see no UTF8 in the pages!


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
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.