mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-17 08:15:22 +01:00
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)
This commit is contained in:
parent
612058168d
commit
e751e4b7c3
1 changed files with 13 additions and 13 deletions
|
|
@ -184,20 +184,20 @@ def build_index(self):
|
|||
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 @@ def get_cover_url(self):
|
|||
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.*'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue