mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1688110 [recipe for Die Zeit (subscription only) doesn't work after URL changes](https://bugs.launchpad.net/calibre/+bug/1688110)
This commit is contained in:
parent
9afc11c015
commit
54606744b2
@ -186,18 +186,18 @@ class ZeitEPUBAbo(BasicNewsRecipe):
|
|||||||
browser.form['email'] = self.username
|
browser.form['email'] = self.username
|
||||||
browser.form['pass'] = self.password
|
browser.form['pass'] = self.password
|
||||||
browser.submit()
|
browser.submit()
|
||||||
# change into abo section - not needed at the moment
|
# change into abo section - not needed between late 2016 and May 2017
|
||||||
# browser.open(url)
|
browser.open(url)
|
||||||
# abolink = browser.find_link(text_regex=re.compile(
|
abolink = browser.find_link(text_regex=re.compile(
|
||||||
# '.*Abo-Bereich.*'))
|
'.*E-Paper.*')) # used to be '.*Abo-Bereich.*'
|
||||||
# browser.follow_link(abolink)
|
browser.follow_link(abolink)
|
||||||
# find page for latest issue
|
# find page for latest issue
|
||||||
latestlink = browser.find_link(text_regex=re.compile(
|
latestlink = browser.find_link(text_regex=re.compile(
|
||||||
'.*ZUR AKTUELLEN AUSGABE.*'))
|
'.*ZUR AKTUELLEN AUSGABE.*'))
|
||||||
browser.follow_link(latestlink)
|
browser.follow_link(latestlink)
|
||||||
# now find the correct file, we will still use the ePub file
|
# now find the correct file, we will still use the ePub file
|
||||||
epublink = browser.find_link(text_regex=re.compile(
|
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)
|
response = browser.follow_link(epublink)
|
||||||
self.report_progress(1, _('next step'))
|
self.report_progress(1, _('next step'))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user