mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Updating readability class names to look for.
This commit is contained in:
parent
ae6bf532f2
commit
ef51152bcd
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class TextImporter:
|
|||
text = text.replace("\u00a0", " ") # Non-breaking space, is mangled when encoding is not utf-8
|
||||
|
||||
original_text_doc = readability.Document(text, url=resp.url,
|
||||
positive_keywords="postContent, postField")
|
||||
positive_keywords="post, entry, postProp, article, postContent, postField")
|
||||
try:
|
||||
content = original_text_doc.summary(html_partial=True)
|
||||
except (readability.Unparseable, ParserError), e:
|
||||
|
|
Loading…
Add table
Reference in a new issue