xmltv/grab/uk_tvguide tv_grab_uk_tvguide,1.19,1.20
Geoff <[email protected]> Sun, 01 Jan 2017 13:01:05 +0000
| 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-serv23698
Modified Files:
tv_grab_uk_tvguide
Log Message:
Try to avoid break when no response from tv_guide website (bug #514)
Index: tv_grab_uk_tvguide
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_tvguide/tv_grab_uk_tvguide,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** tv_grab_uk_tvguide 1 Jan 2017 12:56:39 -0000 1.19
--- tv_grab_uk_tvguide 1 Jan 2017 13:01:03 -0000 1.20
***************
*** 206,209 ****
--- 206,216 ----
if ($tree) {
my $channelname = $tree->look_down('_tag' => 'option', 'value' => $channel_id);
+
+ # tvguide website can be very slow - try to avoid barfing when no response
+ if (!defined $channelname) {
+ print STDERR "Unable to retrieve web page for $channel_id \n";
+ next;
+ }
+
$channelname = $channelname->as_text;
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot