Fix #1197 (Fix Respekt recipe following changes in the website )

This commit is contained in:
Kovid Goyal 2020-07-22 19:10:55 +05:30
parent 834ab1ad2f
commit 742187742a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -52,9 +52,9 @@ class respektRecipe(BasicNewsRecipe):
def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
if self.username is not None and self.password is not None:
br.open('https://www.respekt.cz/')
br.open('https://www.respekt.cz/uzivatel/prihlaseni')
for form in br.forms():
if form.attrs.get('id') == 'frm-authBox-loginForm':
if form.attrs.get('id') == 'frm-loginForm':
br.form = form
break
for c in form.controls: