mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update business_standard.recipe
This commit is contained in:
parent
4ba6efed59
commit
2aebeda6b7
@ -158,8 +158,8 @@ class BusinessStandard(BasicNewsRecipe):
|
|||||||
for attr in self.remove_attributes:
|
for attr in self.remove_attributes:
|
||||||
for x in soup.findAll(attrs={attr: True}):
|
for x in soup.findAll(attrs={attr: True}):
|
||||||
del x[attr]
|
del x[attr]
|
||||||
for br in soup.findAll('small', attrs={'class': 'brtag'}):
|
for br in soup.findAll(attrs={'class': lambda x: x and x.startswith('brtag')}):
|
||||||
br.clear()
|
if pa := br.find_parent('div'):
|
||||||
brtag = soup.new_tag('br')
|
pa.name = 'p'
|
||||||
br.replace_with(brtag)
|
br.extract()
|
||||||
return soup
|
return soup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user