Package: xmltv
Version: 0.5.63
Severity: important
Tags: patch

guide not downloading from port.ro and port.hu :

http://www.port.hu/pls/tv/tv.channel?i_ch=001&i_date=20120625&i_xday=5&i_where=1:
no programs found, skipping
http://www.port.hu/pls/tv/tv.channel?i_ch=002&i_date=20120625&i_xday=5&i_where=1:
no programs found, skipping
http://www.port.hu/pls/tv/tv.channel?i_ch=003&i_date=20120625&i_xday=5&i_where=1:
no programs found, skipping
http://www.port.hu/pls/tv/tv.channel?i_ch=005&i_date=20120625&i_xday=5&i_where=1:
no programs found, skipping
http://www.port.hu/pls/tv/tv.channel?i_ch=006&i_date=20120625&i_xday=5&i_where=1:
no programs found, skipping
http://www.port.hu/pls/tv/tv.channel?i_ch=032&i_date=20120625&i_xday=5&i_where=1:
no programs found, skipping




-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-23-generic-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
## Description: _huro: unbreak after site changes
## Origin: upstream, http://xmltv.cvs.sourceforge.net/viewvc/xmltv/xmltv/grab/huro/tv_grab_huro.in?r1=1.47&r2=1.48&view=patch
## Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xmltv/+bug/1018756
## Author: István Váradi and Zoltan Karcagi
## Forwarded: not-needed
Index: xmltv/grab/huro/tv_grab_huro.in
===================================================================
--- xmltv.orig/grab/huro/tv_grab_huro.in	2012-06-28 08:36:03.754300000 +0000
+++ xmltv/grab/huro/tv_grab_huro.in	2012-06-28 08:40:55.390999811 +0000
@@ -2,7 +2,7 @@
 # vi:noet:ts=4
 
 #-------------------------------------------------------------------------------
-# $Id: tv_grab_huro.in,v 1.47 2011/07/28 09:01:54 attila_nagy Exp $
+# $Id: tv_grab_huro.in,v 1.48 2012/06/19 06:32:25 dekarl Exp $
 #-------------------------------------------------------------------------------
 
 #-------------------------------------------------------------------------------
@@ -122,7 +122,7 @@
 #-------------------------------------------------------------------------------
 
 use strict;
-use XMLTV::Version '$Id: tv_grab_huro.in,v 1.47 2011/07/28 09:01:54 attila_nagy Exp $';
+use XMLTV::Version '$Id: tv_grab_huro.in,v 1.48 2012/06/19 06:32:25 dekarl Exp $';
 use XMLTV::Capabilities qw/baseline manualconfig cache/;
 use XMLTV::Description 'Hungary/Romania';
 use XMLTV::Supplement qw/GetSupplement/;
@@ -482,11 +482,18 @@
 			# the column can hold following type of data:
 			# begin time | title | long desc | url | category
 			
-			if ($col->attr("colspan") && (my $begin_time = $col->look_down("_tag"=>"p", "class"=>"begin_time" ))) 
+			my $begin_time;
+			# this matches the currently running programme only:
+			if ($col->attr("colspan") && ($begin_time = $col->look_down("_tag"=>"p", "class"=>"begin_time" )))
 			{
 				$_ = $begin_time->as_text();
+			} elsif ($begin_time = $col->look_down("_tag"=>"td", "class"=>"time_container")) {
+				$_ = $begin_time->look_down("_tag"=>"div")->as_text();
 			} else {
 				$_ = $col->as_text();
+				$_ =~ tr/\xA0/ /;
+				$_ =~ s/^\s+//;
+				$_ =~ s/\s+$//;
 			}
 			s/^\s+//;s/\s+$//;
 

Reply via email to