xmltv/grab/uk_tvguide tv_grab_uk_tvguide,1.14,1.15

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

Modified Files:
	tv_grab_uk_tvguide 
Log Message:
fix broken 'details' pages after source site changed

Index: tv_grab_uk_tvguide
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_tvguide/tv_grab_uk_tvguide,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** tv_grab_uk_tvguide	3 Dec 2014 17:11:38 -0000	1.14
--- tv_grab_uk_tvguide	24 Dec 2014 10:32:55 -0000	1.15
***************
*** 246,257 ****
  							# 2014-11-26 site changed
  							#    <a href="http://watch.tvguide.co.uk/engage/2057116/103685857-fake_britain" target="_blank"...
! 							#
  							#  my $webdetails = $show->look_down('_tag' => 'a', 'href' => qr/javascript:popup/);
- 							
  							# 2014-12-03 The new website seems a bit flakey with these details pages, often returning a 500 Server Error
  							#    Here's an option to disable the details pages  (  --nodetailspage )
  						if (!$opt->{nodetailspage}) {
  							
! 							my $webdetails = $show->look_down('_tag' => 'a', 'href' => qr/\/engage\//);
  							my $href = $webdetails->attr('href');
  							#    my ($id) = $href =~ /javascript:popup\((\d*)\);/;
--- 246,259 ----
  							# 2014-11-26 site changed
  							#    <a href="http://watch.tvguide.co.uk/engage/2057116/103685857-fake_britain" target="_blank"...
! 							# 2014-12-03 site changed
  							#  my $webdetails = $show->look_down('_tag' => 'a', 'href' => qr/javascript:popup/);
  							# 2014-12-03 The new website seems a bit flakey with these details pages, often returning a 500 Server Error
  							#    Here's an option to disable the details pages  (  --nodetailspage )
+ 							# 2014-12-24 site changed
+ 							#  my $webdetails = $show->look_down('_tag' => 'a', 'href' => qr/\/engage\//);
+ 							#
  						if (!$opt->{nodetailspage}) {
  							
! 							my $webdetails = $show->look_down('_tag' => 'a', 'href' => qr/\/detail\//);
  							my $href = $webdetails->attr('href');
  							#    my ($id) = $href =~ /javascript:popup\((\d*)\);/;


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
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.