This commit is contained in:
Erik Johnston 2016-08-04 16:10:08 +01:00
parent e97648c4e2
commit b5525c76d1

View File

@ -347,7 +347,7 @@ class PreviewUrlResource(Resource):
re.sub(r'\s+', '\n', el.text).strip() re.sub(r'\s+', '\n', el.text).strip()
for el in cloned_tree.iter() if el.text for el in cloned_tree.iter() if el.text
) )
og['og:description'] = _summarize_paragraphs(text_nodes) og['og:description'] = summarize_paragraphs(text_nodes)
# TODO: delete the url downloads to stop diskfilling, # TODO: delete the url downloads to stop diskfilling,
# as we only ever cared about its OG # as we only ever cared about its OG