xmltv/grab/uk_tvguide tv_grab_uk_tvguide,1.4,1.5

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

Modified Files:
	tv_grab_uk_tvguide 
Log Message:
(minor) Fix for website changes

Index: tv_grab_uk_tvguide
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_tvguide/tv_grab_uk_tvguide,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tv_grab_uk_tvguide	20 Oct 2013 18:37:47 -0000	1.4
--- tv_grab_uk_tvguide	14 Dec 2013 10:42:11 -0000	1.5
***************
*** 198,202 ****
  				# Construct the listings url
  				my $url = $baseurl . '?ch=' . $channel_id . '&cTime=' . uri_escape( $theday->strftime('%m/%d/%Y 00:00:00') );
! 				#		print $url ."\n";
  
  				# If we need to map the fetched channel_id to a different value
--- 198,202 ----
  				# Construct the listings url
  				my $url = $baseurl . '?ch=' . $channel_id . '&cTime=' . uri_escape( $theday->strftime('%m/%d/%Y 00:00:00') );
! 				# print STDERR $url ."\n";
  
  				# If we need to map the fetched channel_id to a different value
***************
*** 240,247 ****
  							#		<a href="javascript:popup(151361219);" ...
  							#		http://www.tvguide.co.uk/detail.asp?id=151451760
  							my $webdetails = $show->look_down('_tag' => 'a', 'href' => qr/javascript:popup/);
  							my $href = $webdetails->attr('href');
! 							my ($id) = $href =~ /javascript:popup\((\d*)\);/;
! 							$url = $ROOT_URL . 'detail.asp?id=' . $id;
  							# Fetch the page
  							my $treedetail = XMLTV::Get_nice::get_nice_tree($url, \&utf8);
--- 240,253 ----
  							#		<a href="javascript:popup(151361219);" ...
  							#		http://www.tvguide.co.uk/detail.asp?id=151451760
+ 							# 2013-12-14 site changed
+ 							#    <a href="javascript:popupshow('http://www.tvguide.co.uk/detail/1889599/94819598/saturday-kitchen-live');" target="_blank" ...
+ 							#
  							my $webdetails = $show->look_down('_tag' => 'a', 'href' => qr/javascript:popup/);
  							my $href = $webdetails->attr('href');
! 							#    my ($id) = $href =~ /javascript:popup\((\d*)\);/;
! 							#    $url = $ROOT_URL . 'detail.asp?id=' . $id;
! 							my ($url) = $href =~ /javascript:popupshow\('(.*)'\);/;
! 							# print STDERR $url ."\n";
! 
  							# Fetch the page
  							my $treedetail = XMLTV::Get_nice::get_nice_tree($url, \&utf8);


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&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.