If the "content" that feedparser returns is a string, just use that.
authorAdam Sampson <ats@offog.org>
Wed, 30 Jul 2003 07:04:06 +0000 (07:04 +0000)
committerAdam Sampson <ats@offog.org>
Wed, 30 Jul 2003 07:04:06 +0000 (07:04 +0000)
rawdoglib/rawdog.py

index a84054856b6c8a11bb5e39e6ad4963b5cc9d86f2..850ce2ad9ddb0e186ee9dc963cf4dd56f09cab97 100644 (file)
@@ -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: