From e751e4b7c317265a3f5db8317e3faddd30259bc4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 27 Mar 2017 08:57:28 +0530 Subject: [PATCH] Update Die Zeit (subscription) Fixes #1675200 [Recipe "Die Zeit (subscription only) updated due to change in login process](https://bugs.launchpad.net/calibre/+bug/1675200) --- recipes/zeitde_sub.recipe | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/recipes/zeitde_sub.recipe b/recipes/zeitde_sub.recipe index 99396a6d8e..a65a77640d 100644 --- a/recipes/zeitde_sub.recipe +++ b/recipes/zeitde_sub.recipe @@ -184,20 +184,20 @@ class ZeitEPUBAbo(BasicNewsRecipe): browser.open(url) browser.select_form(nr=0) browser.form['email'] = self.username - browser.form['password'] = self.password + browser.form['pass'] = self.password browser.submit() - # change into abo section - browser.open(url) - abolink = browser.find_link(text_regex=re.compile( - '.*Abo-Bereich.*')) - browser.follow_link(abolink) + # change into abo section - not needed at the moment + # browser.open(url) + # abolink = browser.find_link(text_regex=re.compile( + # '.*Abo-Bereich.*')) + # browser.follow_link(abolink) # find page for latest issue latestlink = browser.find_link(text_regex=re.compile( '.*ZUR AKTUELLEN AUSGABE.*')) browser.follow_link(latestlink) # now find the correct file, we will still use the ePub file epublink = browser.find_link(text_regex=re.compile( - '.*EPUB FÜR E-READER LADEN.*')) + '.*EPUB F\xdcR E-READER LADEN.*')) response = browser.follow_link(epublink) self.report_progress(1, _('next step')) @@ -250,13 +250,13 @@ class ZeitEPUBAbo(BasicNewsRecipe): browser.open(url) browser.select_form(nr=0) browser.form['email'] = self.username - browser.form['password'] = self.password + browser.form['pass'] = self.password browser.submit() - # change into abo section - browser.open(url) - abolink = browser.find_link(text_regex=re.compile( - '.*Abo-Bereich.*')) - browser.follow_link(abolink) + # change into abo section - not needed at the moment + # browser.open(url) + # abolink = browser.find_link(text_regex=re.compile( + # '.*Abo-Bereich.*')) + # browser.follow_link(abolink) # find page for latest issue latestlink = browser.find_link(text_regex=re.compile( '.*ZUR AKTUELLEN AUSGABE.*'))