From 145f59b546e614f86a4f346b883a42ee4a1c968f Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 1 Oct 2013 19:50:28 +0200 Subject: [PATCH] Fix already-filled feeds By pulling the content from "content" when needed --- morss.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/morss.py b/morss.py index e00c8a2..206f762 100644 --- a/morss.py +++ b/morss.py @@ -306,6 +306,10 @@ def Fill(item, cache, feedurl='/', fast=False): count_desc = countWord(item.desc) if max(count_content, count_desc) > 500: + if count_desc > count_content: + item.content = item.desc + del item.desc + log('reversed sizes') log('long enough') return True