Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion feedparser-0.71-3.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ but less good.]],
license = "BSD"
}
dependencies = {
"lua >= 5.1, < 5.4",
"lua >= 5.1",
"luaexpat"
}
build = {
Expand Down
7 changes: 5 additions & 2 deletions feedparser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -366,4 +369,4 @@ if _VERSION:sub(-3) < "5.3" then
end


return feedparser
return feedparser