Fix issue when desc and content empty

Wouldn't put fetched article in feed
master
pictuga 2015-02-24 00:38:02 +08:00
parent 5c23f90f0b
commit 83ed440e67
1 changed files with 1 additions and 1 deletions

View File

@ -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: