From 83ed440e67957269818b15de11d71196ec18ebf6 Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 24 Feb 2015 00:38:02 +0800 Subject: [PATCH] Fix issue when desc and content empty Wouldn't put fetched article in feed --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 00693cb..871abaa 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -389,7 +389,7 @@ def Fill(item, cache, options, feedurl='/', fast=False): out = readability.Document(data, url=con.url).summary(True) - if options.hungry or count_words(out) > max(count_content, count_desc) > 0: + if options.hungry or count_words(out) > max(count_content, count_desc): item.push_content(out) cache.set(link, out) else: