From c4be32950d0f8b700192930b085b62e8acbaeb8b Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Wed, 30 Jul 2003 07:04:06 +0000 Subject: [PATCH] If the "content" that feedparser returns is a string, just use that. --- rawdoglib/rawdog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index a840548..850ce2a 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -28,6 +28,8 @@ def format_time(secs, config): def select_content(contents): """Select the best content element from an Echo feed.""" + if type(contents) == str: + return contents preferred = ["text/html", "application/xhtml+xml"] cs = [] for c in contents: -- 2.35.1