mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Login form location changed
This commit is contained in:
parent
661eb97d3c
commit
834ab1ad2f
@ -206,12 +206,11 @@ class ForeignAffairsRecipe(BasicNewsRecipe):
|
||||
def get_browser(self):
|
||||
|
||||
def select_form(form):
|
||||
return form.attrs.get('id', None) == 'user-login'
|
||||
return form.attrs.get('id', None) == 'fa-user-login-form'
|
||||
|
||||
br = BasicNewsRecipe.get_browser(self)
|
||||
if self.username is not None and self.password is not None:
|
||||
br.open(
|
||||
'https://www.foreignaffairs.com/user?destination=user%3Fop%3Dlo')
|
||||
br.open('https://www.foreignaffairs.com/user/login')
|
||||
br.select_form(predicate=select_form)
|
||||
br.form['name'] = self.username
|
||||
br.form['pass'] = self.password
|
||||
|
Loading…
x
Reference in New Issue
Block a user