projects
/
rawdog
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89cc484
)
If the "content" that feedparser returns is a string, just use that.
author
Adam Sampson
<ats@offog.org>
Wed, 30 Jul 2003 07:04:06 +0000
(07:04 +0000)
committer
Adam Sampson
<ats@offog.org>
Wed, 30 Jul 2003 07:04:06 +0000
(07:04 +0000)
rawdoglib/rawdog.py
patch
|
blob
|
history
diff --git
a/rawdoglib/rawdog.py
b/rawdoglib/rawdog.py
index a84054856b6c8a11bb5e39e6ad4963b5cc9d86f2..850ce2ad9ddb0e186ee9dc963cf4dd56f09cab97 100644
(file)
--- 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: