X-Git-Url: http://git.veekun.com/zzz-spline-frontpage.git/blobdiff_plain/9ea92c689c57bd114c09147238dd3f478c1b05c6..refs/tags/veekun-promotions/2010091901:/splinext/frontpage/sources.py diff --git a/splinext/frontpage/sources.py b/splinext/frontpage/sources.py index a65e3e8..9b70d4b 100644 --- a/splinext/frontpage/sources.py +++ b/splinext/frontpage/sources.py @@ -56,7 +56,7 @@ class Source(object): The template will be passed one parameter: the update object, ``update``. """ - def __init__(self, title, icon, link, limit=None, max_age=None): + def __init__(self, config, title, icon, link, limit=None, max_age=None): self.title = title self.icon = icon self.link = link @@ -193,6 +193,11 @@ class FeedSource(CachedSource): # If there be a summary, cheerfully trust that it's actually a # summary content = entry.summary + elif 'content' in entry and \ + len(entry.content[0].value) <= self.SUMMARY_LENGTH: + + # Full content is short; use as-is! + content = entry.entry.content[0].value elif 'content' in entry: # Full content is way too much, especially for my giant blog posts. # Cut this down to some arbitrary number of characters, then feed