minor fix
parent
5c32c8215e
commit
ed7baccb5c
|
@ -651,6 +651,7 @@ def complies_with_chud(obj):
|
|||
return True
|
||||
|
||||
#check for agendaposter_phrase in body_html
|
||||
if old_body_html:
|
||||
excluded_tags = {'del','sub','sup','marquee','spoiler','lite-youtube','video','audio'}
|
||||
soup = BeautifulSoup(old_body_html, 'lxml')
|
||||
tags = soup.html.body.find_all(lambda tag: tag.name not in excluded_tags and not tag.attrs, recursive=False)
|
||||
|
|
Loading…
Reference in New Issue