morss: drop 'keep' option

Because the Firefox behaviour it is working around is no longer in use
This commit is contained in:
2020-04-05 16:37:27 +02:00
parent 40c69f17d2
commit d90756b337
2 changed files with 1 additions and 5 deletions

View File

@@ -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 + "<br/><br/><center>* * *</center><br/><br/>" + 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'):