diff --git a/feedparser-0.71-3.rockspec b/feedparser-0.71-3.rockspec index f03f8ce..412cce5 100644 --- a/feedparser-0.71-3.rockspec +++ b/feedparser-0.71-3.rockspec @@ -15,7 +15,7 @@ but less good.]], license = "BSD" } dependencies = { - "lua >= 5.1, < 5.4", + "lua >= 5.1", "luaexpat" } build = { diff --git a/feedparser.lua b/feedparser.lua index 2d66b8c..d4ebf9e 100644 --- a/feedparser.lua +++ b/feedparser.lua @@ -112,7 +112,10 @@ local function parse_entries(entries_el, format_str, base) local author_url = (el:getChild('url') or blanky):getText() if author_url and author_url ~= "" then entry.author_detail.href=resolve(author_url, rebase(el:getChild('url'), el_base)) end - elseif tag=='category' or tag=='dc:subject' then + elseif tag=='category' then + entry.category = (el:getChild('term') or el):getText() + + elseif tag=='dc:subject' then --todo elseif tag=='source' then @@ -366,4 +369,4 @@ if _VERSION:sub(-3) < "5.3" then end -return feedparser \ No newline at end of file +return feedparser