mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
ac2f93115a
commit
71b9d4aa22
@ -922,7 +922,7 @@ class BasicNewsRecipe(Recipe):
|
|||||||
def _postprocess_html(self, soup, first_fetch, job_info):
|
def _postprocess_html(self, soup, first_fetch, job_info):
|
||||||
if self.no_stylesheets:
|
if self.no_stylesheets:
|
||||||
for link in soup.findAll('link'):
|
for link in soup.findAll('link'):
|
||||||
if (link.get('type') or '').lower() == 'text/css' and (link.get('rel') or '').lower() == 'stylesheet':
|
if (link.get('type') or 'text/css').lower() == 'text/css' and (link.get('rel') or 'stylesheet').lower() == 'stylesheet':
|
||||||
link.extract()
|
link.extract()
|
||||||
for style in soup.findAll('style'):
|
for style in soup.findAll('style'):
|
||||||
style.extract()
|
style.extract()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user