mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
63a3852c9f
@ -146,6 +146,10 @@ class ft(BasicNewsRecipe):
|
||||
return html
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for table in soup.findAll('table'):
|
||||
if len(table.find('tbody').findAll('tr')) > 20:
|
||||
table.find('tbody').decompose()
|
||||
table.string = '** a table that was supposed to be here has been removed.'
|
||||
for con in soup.findAll(attrs={'class':'n-content-layout__slot'}):
|
||||
if con.find('figure'):
|
||||
con['id'] = 'fig'
|
||||
|
Loading…
x
Reference in New Issue
Block a user