Permalink
Browse files

fix feeds error not showing whole content

  • Loading branch information...
1 parent 267de15 commit 4b126f198016bfadb7132979c8f4c4028c85d452 @denibertovic denibertovic committed Feb 21, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 feed.py
View
@@ -5,6 +5,7 @@
import datetime
+
class RssProgramFeed(Feed):
title = "www.KSET.org"
link = "http://www.kset.org/"
@@ -13,7 +14,8 @@ class RssProgramFeed(Feed):
def item_pubdate(self, obj):
if (obj.time):
- return datetime.datetime(obj.date.year, obj.date.month, obj.date.day, obj.time.hour, obj.time.minute)
+ return datetime.datetime(obj.date.year, obj.date.month, obj.date.day,
+ obj.time.hour, obj.time.minute)
else:
return datetime.datetime(obj.date.year, obj.date.month, obj.date.day)
@@ -24,7 +26,8 @@ def item_title(self, item):
return item.title
def item_description(self, item):
- return item.content
+ return item.description + item.content
+
class AtomProgramFeed(RssProgramFeed):
feed_type = Atom1Feed

0 comments on commit 4b126f1

Please sign in to comment.