mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix #1039286 (Updated recipe for The Sunday Times UK)
This commit is contained in:
parent
db26e18d7c
commit
d161a6b06d
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2010-2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
www.thesundaytimes.co.uk
|
www.thesundaytimes.co.uk
|
||||||
'''
|
'''
|
||||||
@ -43,13 +43,14 @@ class TimesOnline(BasicNewsRecipe):
|
|||||||
|
|
||||||
def get_browser(self):
|
def get_browser(self):
|
||||||
br = BasicNewsRecipe.get_browser()
|
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:
|
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
|
,'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
|
return br
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user