Skip to content

Commit

Permalink
Atom now actually works (sigh)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Dec 13, 2010
1 parent 1b66be6 commit 7d2a7e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions feedreader/feeds/atom10.py
Expand Up @@ -14,8 +14,8 @@ class Atom10Item(Item):

def _process_links(self):
self._enclosures = []
for link in self._xml.iterchildren(tag='link'):
if link.attrib['rel'] == 'alternate':
for link in self._xml.iterchildren(tag='{http://www.w3.org/2005/Atom}link'):
if link.attrib.get('rel', 'alternate') == 'alternate':
self._link = link.attrib['href']
elif link.attrib['rel'] == 'enclosure':
if link.attrib['type'].startswith('image/'):
Expand Down Expand Up @@ -51,7 +51,7 @@ def enclosures(self):

@property
def description(self):
return unicode(self._xml.description).strip()
return unicode(self._xml.content).strip()

@property
def published(self):
Expand Down

0 comments on commit 7d2a7e2

Please sign in to comment.