From 604b03e2ba218ec871d6992884ec5202585241f2 Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 24 Feb 2015 00:38:34 +0800 Subject: [PATCH] Delete desc when :keep=False Still needed for Firefox, cause empty still show up instead of content in feed preview --- morss/morss.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 871abaa..7f7b646 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -590,12 +590,12 @@ def After(rss, options): del item.desc del item.content - if item.desc and item.content: - if options.clip: - item.content = item.desc + "

* * *


" + item.content - del item.desc - if not options.keep: - del item.desc + if options.clip and item.desc and item.content: + item.content = item.desc + "

* * *


" + item.content + del item.desc + + if not options.keep: + del item.desc if options.nolink and item.content: content = lxml.html.fromstring(item.content)