mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d181634728
commit
a9a068aeda
@ -32,9 +32,7 @@ class StrategyBusinessRecipe(BasicNewsRecipe):
|
|||||||
br[c.name] = self.username
|
br[c.name] = self.username
|
||||||
elif c.name.endswith('_password'):
|
elif c.name.endswith('_password'):
|
||||||
br[c.name] = self.password
|
br[c.name] = self.password
|
||||||
raw = br.submit().read()
|
br.submit().read()
|
||||||
if '>Logout<' not in raw:
|
|
||||||
raise ValueError('Failed to login, check your username and password')
|
|
||||||
return br
|
return br
|
||||||
|
|
||||||
extra_css = '''
|
extra_css = '''
|
||||||
@ -78,5 +76,6 @@ class StrategyBusinessRecipe(BasicNewsRecipe):
|
|||||||
remove_tags.append(dict(name='div', attrs={'id': 'textsize'}))
|
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-')))
|
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'
|
return url.partition('?')[0] + '?pg=all'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user