Fix lwn.net login

The field names on the LWN login pages have changed and the recipe needs
to be updated to use the new field names.
This commit is contained in:
John Kristensen 2024-12-08 21:35:48 +11:00
parent d81c82b967
commit 5359ed3744

View File

@ -28,8 +28,8 @@ class LWN(BasicNewsRecipe):
if self.username is not None and self.password is not None: if self.username is not None and self.password is not None:
br.open(self.LOGIN) br.open(self.LOGIN)
br.select_form(name='loginform') br.select_form(name='loginform')
br['Username'] = self.username br['uname'] = self.username
br['Password'] = self.password br['pword'] = self.password
br.submit() br.submit()
return br return br