From d161a6b06d448858a5b5104764836c4b62b3c007 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Aug 2012 09:32:56 +0530 Subject: [PATCH] Fix #1039286 (Updated recipe for The Sunday Times UK) --- recipes/sunday_times.recipe | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/recipes/sunday_times.recipe b/recipes/sunday_times.recipe index 1f20f73cd9..973f1792c7 100644 --- a/recipes/sunday_times.recipe +++ b/recipes/sunday_times.recipe @@ -1,6 +1,6 @@ __license__ = 'GPL v3' -__copyright__ = '2010, Darko Miletic ' +__copyright__ = '2010-2012, Darko Miletic ' ''' www.thesundaytimes.co.uk ''' @@ -43,13 +43,14 @@ class TimesOnline(BasicNewsRecipe): def get_browser(self): br = BasicNewsRecipe.get_browser() - br.open('http://www.timesplus.co.uk/tto/news/?login=false&url=http://www.thesundaytimes.co.uk/sto/') + br.open('http://www.thesundaytimes.co.uk/sto/') if self.username is not None and self.password is not None: - data = urllib.urlencode({ 'userName':self.username + data = urllib.urlencode({ + 'gotoUrl' :self.INDEX + ,'username':self.username ,'password':self.password - ,'keepMeLoggedIn':'false' }) - br.open('https://www.timesplus.co.uk/iam/app/authenticate',data) + br.open('https://acs.thetimes.co.uk/user/login',data) return br remove_tags = [