From ecfda1d05ae21c838d27644ae5c6574c45487a59 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 6 Nov 2014 21:14:20 +0100 Subject: [PATCH] Add :strip to remove desc and content --- morss/morss.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/morss/morss.py b/morss/morss.py index 4aa4bf4..c3ff96b 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -670,6 +670,10 @@ def Gather(rss, url, cache, options): def After(rss, options): for i, item in enumerate(list(rss.items)): + if options.strip: + del item.desc + del item.content + if options.search: if options.search not in item.title: item.remove()