Merge branch 'master' of git@fucktheforce.de:blogthon

This commit is contained in:
Pascal Turbing 2009-12-05 19:46:11 +01:00
commit e1e9ca14cb

View File

@ -263,14 +263,14 @@ elif feed_display == "rss":
print ' <link>' + blog_url + '?p=' + title + '</link>' print ' <link>' + blog_url + '?p=' + title + '</link>'
print ' <guid>' + title_md5sum + '</guid>' print ' <guid>' + title_md5sum + '</guid>'
print ' <pubDate>' + date + '</pubDate>' print ' <pubDate>' + date + '</pubDate>'
print ' <description>'
content = open(str(entries[i][1]), 'r') content = open(str(entries[i][1]), 'r')
rss_description= ''
for h in xrange(0, int(feed_preview)): for h in xrange(0, int(feed_preview)):
rss_line = content.readline().strip() line = content.readline().strip()
if rss_line != '': if line:
print ' ' + rss_line rss_description = rss_description + line + '<br />'
content.close() content.close()
print ' </description>' print ' <description><![CDATA[' + rss_description + ']]></description>'
print ' </item>' print ' </item>'
print ' </channel>' print ' </channel>'
print '</rss>' print '</rss>'