mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 05:03:46 +02:00
...
This commit is contained in:
parent
d181634728
commit
a9a068aeda
1 changed files with 3 additions and 4 deletions
|
|
@ -32,9 +32,7 @@ def get_browser(self):
|
|||
br[c.name] = self.username
|
||||
elif c.name.endswith('_password'):
|
||||
br[c.name] = self.password
|
||||
raw = br.submit().read()
|
||||
if '>Logout<' not in raw:
|
||||
raise ValueError('Failed to login, check your username and password')
|
||||
br.submit().read()
|
||||
return br
|
||||
|
||||
extra_css = '''
|
||||
|
|
@ -78,5 +76,6 @@ def get_browser(self):
|
|||
remove_tags.append(dict(name='div', attrs={'id': 'textsize'}))
|
||||
remove_tags.append(dict(name='div', id=lambda x:x and x.startswith('div-gpt-ad-')))
|
||||
|
||||
def print_version(self, url):
|
||||
def get_article_url(self, article):
|
||||
url = BasicNewsRecipe.get_article_url(self, article)
|
||||
return url.partition('?')[0] + '?pg=all'
|
||||
|
|
|
|||
Loading…
Reference in a new issue