xmltv/grab/huro tv_grab_huro.in,1.55,1.56

Geoff <[email protected]> Sat, 26 Mar 2016 12:39:44 +0000
Newsgroups gmane.comp.tv.xmltv.cvs
Message-ID <[email protected]>
Update of /cvsroot/xmltv/xmltv/grab/huro
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1364/xmltv/grab/huro

Modified Files:
	tv_grab_huro.in 
Log Message:
Unbreak RO grabber (bug #501)

Index: tv_grab_huro.in
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/huro/tv_grab_huro.in,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** tv_grab_huro.in	23 Jun 2015 20:05:25 -0000	1.55
--- tv_grab_huro.in	26 Mar 2016 12:39:42 -0000	1.56
***************
*** 313,317 ****
  	my $basedateday = UnixDate(parse_date($basedate), '%e');
  	my $urlfmt = "http://www." . domain() .
! 		"/pls/tv/".($COUNTRY eq 'hu' ? 'old' : '')."tv.channel?i_ch=$ch_port_id" .
  		"&i_date=%d&i_xday=".$days_to_request."&i_where=1";
  	my $url = "$urlfmt";
--- 313,317 ----
  	my $basedateday = UnixDate(parse_date($basedate), '%e');
  	my $urlfmt = "http://www." . domain() .
! 		"/pls/tv/".($COUNTRY eq 'hu' || $COUNTRY eq 'ro' ? 'old' : '')."tv.channel?i_ch=$ch_port_id" .
  		"&i_date=%d&i_xday=".$days_to_request."&i_where=1";
  	my $url = "$urlfmt";
***************
*** 796,800 ****
  	my $bar = new XMLTV::ProgressBar('getting list of channels', 1)
  		if not $opt_quiet;
! 	my $url="http://www.$d/pls/tv/".($COUNTRY eq 'hu' ? 'old' : '')."tv.prog";
  
  	worker("base-downloading");
--- 796,800 ----
  	my $bar = new XMLTV::ProgressBar('getting list of channels', 1)
  		if not $opt_quiet;
! 	my $url="http://www.$d/pls/tv/".($COUNTRY eq 'hu' || $COUNTRY eq 'ro' ? 'old' : '')."tv.prog";
  
  	worker("base-downloading");
***************
*** 1381,1385 ****
  		# image url not valid, so we must get it from the programmes page. Ideally we would do that during the main grab but this is a Q&D fix
  		# and I don't want to change too much of this code
! 		my $url = "http://www." . domain() . "/pls/w/".($COUNTRY eq 'hu' ? 'old' : '')."tv.channel?i_ch=".$channelid."&i_date=".UnixDate('today','%Y-%m-%d')."&i_where=1";
  			
  		my $data=get_nice($url);
--- 1381,1385 ----
  		# image url not valid, so we must get it from the programmes page. Ideally we would do that during the main grab but this is a Q&D fix
  		# and I don't want to change too much of this code
! 		my $url = "http://www." . domain() . "/pls/w/".($COUNTRY eq 'hu' || $COUNTRY eq 'ro' ? 'old' : '')."tv.channel?i_ch=".$channelid."&i_date=".UnixDate('today','%Y-%m-%d')."&i_where=1";
  			
  		my $data=get_nice($url);
***************
*** 1471,1475 ****
  	# two sprintf parameters: first: channel_id,, second how many days grabbed
  	my $churlfmt = "http://www." . domain() .
! 		"/pls/tv/".($COUNTRY eq 'hu' ? 'old' : '')."tv.channel?i_ch=%d&" .
  		"i_days=1&i_xday=%d&i_where=1";
  
--- 1471,1475 ----
  	# two sprintf parameters: first: channel_id,, second how many days grabbed
  	my $churlfmt = "http://www." . domain() .
! 		"/pls/tv/".($COUNTRY eq 'hu' || $COUNTRY eq 'ro' ? 'old' : '')."tv.channel?i_ch=%d&" .
  		"i_days=1&i_xday=%d&i_where=1";
  


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140