Fix issue when desc and content empty
Wouldn't put fetched article in feed
This commit is contained in:
parent
5c23f90f0b
commit
83ed440e67
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user