diff options
| author | John Conway <john.a.conway@gmail.com> | 2019-05-08 14:02:25 +0100 |
|---|---|---|
| committer | John Conway <john.a.conway@gmail.com> | 2019-05-08 14:02:25 +0100 |
| commit | 0f07d87631c82d3bbf20cc2b787252934782d43a (patch) | |
| tree | 93617642251496af589a586b1cdbc97a9b293d5f /src | |
| parent | 48df8f3deb775d64ddf80bf159dfb171e590a389 (diff) | |
| download | feed-nim-0f07d87631c82d3bbf20cc2b787252934782d43a.tar.gz feed-nim-0f07d87631c82d3bbf20cc2b787252934782d43a.zip | |
author url -> author uri
Diffstat (limited to 'src')
| -rw-r--r-- | src/feednim/atom.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feednim/atom.nim b/src/feednim/atom.nim index 92e1060..3699e20 100644 --- a/src/feednim/atom.nim +++ b/src/feednim/atom.nim @@ -30,7 +30,7 @@ type AtomAuthor* = object name*: string # Required Atom field - url*: string + uri*: string email*: string AtomLink* = object @@ -79,7 +79,7 @@ proc parseAuthors ( node: XmlNode, mode="author") : seq[AtomAuthor] = for athr_node in node.findAll(mode): var author: AtomAuthor = AtomAuthor() author.name = athr_node.child("name").innerText - if athr_node.child("url") != nil: author.url = athr_node.child("url").innerText + if athr_node.child("uri") != nil: author.uri = athr_node.child("uri").innerText if athr_node.child("email") != nil: author.email = athr_node.child("email").innerText authors.add(author) |
