aboutsummaryrefslogtreecommitdiff
path: root/feedgetter.py
diff options
context:
space:
mode:
Diffstat (limited to 'feedgetter.py')
-rwxr-xr-xfeedgetter.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/feedgetter.py b/feedgetter.py
index a886f351..84fbd6c7 100755
--- a/feedgetter.py
+++ b/feedgetter.py
@@ -100,10 +100,14 @@ class FeedGetter(object):
# feed already in the base
pass
for article in a_feed['entries']:
+ description = ""
try:
- description = article.description.encode('utf-8')
- except Exception, e:
- description = ""
+ description = article.content[0].value.encode('utf-8')
+ except AttributeError:
+ try:
+ description = article.description.encode('utf-8')
+ except Exception, e:
+ description = ""
try:
self.c.execute('insert into articles values (?,?,?,?,?,?,?)', (\
bgstack15