From d90756b337a268f0918dbb7c391442e8f5265a4a Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 5 Apr 2020 16:37:27 +0200 Subject: [PATCH] morss: drop 'keep' option Because the Firefox behaviour it is working around is no longer in use --- README.md | 1 - morss/morss.py | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index aa35f68..4641354 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,6 @@ The arguments are: - `json`: output as JSON - `proxy`: doesn't fill the articles - `clip`: stick the full article content under the original feed content (useful for twitter) - - `keep`: by default, morss does drop feed description whenever the full-content is found (so as not to mislead users who use Firefox, since the latter only shows the description in the feed preview, so they might believe morss doens't work), but with this argument, the description is kept - `search=STRING`: does a basic case-sensitive search in the feed - Advanced - `csv`: export to csv diff --git a/morss/morss.py b/morss/morss.py index 74e8317..d24ab24 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -54,7 +54,7 @@ def filterOptions(options): # example of filtering code below - #allowed = ['proxy', 'clip', 'keep', 'cache', 'force', 'silent', 'pro', 'debug'] + #allowed = ['proxy', 'clip', 'cache', 'force', 'silent', 'pro', 'debug'] #filtered = dict([(key,value) for (key,value) in options.items() if key in allowed]) #return filtered @@ -288,9 +288,6 @@ def ItemAfter(item, options): item.content = item.desc + "

* * *


" + item.content del item.desc - if not options.keep and not options.proxy: - del item.desc - if options.nolink and item.content: content = lxml.html.fromstring(item.content) for link in content.xpath('//a'):