From 7ced1bc459f1ea531fa478cdbf684dca18d13216 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 3 May 2003 12:49:25 +0000 Subject: [PATCH] Prefer content_encoded over description if it's available. --- rawdog | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rawdog b/rawdog index 13b3991..bbf94fa 100644 --- a/rawdog +++ b/rawdog @@ -70,7 +70,10 @@ class Feed: for item in p["items"]: title = maybe_get(item, "title") link = maybe_get(item, "link") - description = maybe_get(item, "description") + if item.has_key("content_encoded"): + description = item["content_encoded"] + else: + description = maybe_get(item, "description") hash = hash_item(feed, title, link, description) if articles.has_key(hash): -- 2.35.1