From: Adam Sampson Date: Wed, 30 Jul 2003 07:04:06 +0000 (+0000) Subject: If the "content" that feedparser returns is a string, just use that. X-Git-Tag: v1.2~4 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=c4be32950d0f8b700192930b085b62e8acbaeb8b;p=rawdog%2F.git If the "content" that feedparser returns is a string, just use that. --- 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: