Skip to content

Commit

Permalink
Add author and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Mar 2, 2016
1 parent 851e26a commit 20fe5cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions feedpipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def cat(self, feeds):
if 'updated' in e:
entry.updated = e.updated

if 'author' in e:
entry.author = FA.Author(e.author)

if 'content' in e:
entry.content = e.content[0].value

Expand All @@ -111,6 +114,13 @@ def cat(self, feeds):
if 'summary' in e:
entry.summary = e.summary

if 'tags' in e:
entry.categories = FA.Collection(
FA.Category(tag.term,
scheme=tag.scheme,
label=tag.label)
for tag in e.tags)

if 'published' in e:
try:
entry.published = e.published
Expand Down

0 comments on commit 20fe5cb

Please sign in to comment.