Delete desc when :keep=False

Still needed for Firefox, cause empty <desc/> still show up instead of content in feed preview
master
pictuga 2015-02-24 00:38:34 +08:00
parent 83ed440e67
commit 604b03e2ba
1 changed files with 6 additions and 6 deletions

View File

@ -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 + "<br/><br/><center>* * *</center><br/><br/>" + 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 + "<br/><br/><center>* * *</center><br/><br/>" + item.content
del item.desc
if not options.keep:
del item.desc
if options.nolink and item.content:
content = lxml.html.fromstring(item.content)