From 54606744b2043eb9d9fa88febae7cfe7c7ac5d72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 4 May 2017 09:09:52 +0530 Subject: [PATCH] Fix #1688110 [recipe for Die Zeit (subscription only) doesn't work after URL changes](https://bugs.launchpad.net/calibre/+bug/1688110) --- recipes/zeitde_sub.recipe | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes/zeitde_sub.recipe b/recipes/zeitde_sub.recipe index 48e49dcea8..c396335e49 100644 --- a/recipes/zeitde_sub.recipe +++ b/recipes/zeitde_sub.recipe @@ -186,18 +186,18 @@ class ZeitEPUBAbo(BasicNewsRecipe): browser.form['email'] = self.username browser.form['pass'] = self.password browser.submit() - # 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) + # change into abo section - not needed between late 2016 and May 2017 + browser.open(url) + abolink = browser.find_link(text_regex=re.compile( + '.*E-Paper.*')) # used to be '.*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.*R E-READER LADEN.*')) # change from '.*EPUB FÜR E-READER LADEN.*' in May 2017 response = browser.follow_link(epublink) self.report_progress(1, _('next step'))