Add :hungry to fill feeds with long intros

This commit is contained in:
2014-06-28 01:43:31 +02:00
parent ac69b28f1b
commit 5f8288eecb
2 changed files with 3 additions and 2 deletions

View File

@@ -422,7 +422,7 @@ def Fill(item, cache, options, feedurl='/', fast=False):
count_content = count_words(item.content)
count_desc = count_words(item.desc)
if max(count_content, count_desc) > 500:
if not options.hungry and max(count_content, count_desc) > 500:
if count_desc > count_content:
item.content = item.desc
del item.desc
@@ -430,7 +430,7 @@ def Fill(item, cache, options, feedurl='/', fast=False):
log('long enough')
return True
if count_content > 5 * count_desc > 0 and count_content > 50:
if not options.hungry and count_content > 5 * count_desc > 0 and count_content > 50:
log('content bigger enough')
return True