last-fm.lua: don't use empty album names
This commit is contained in:
parent
f57664ddd0
commit
2ec6258ff3
|
@ -61,8 +61,8 @@ local process = function (buffer, data, action)
|
||||||
|
|
||||||
-- Need to make some sense of the XML automatically converted to JSON
|
-- Need to make some sense of the XML automatically converted to JSON
|
||||||
local text_of = function (node)
|
local text_of = function (node)
|
||||||
if type (node) == "table" then return node["#text"] end
|
if type (node) ~= "table" then return node end
|
||||||
return node
|
return node["#text"] ~= "" and node["#text"] or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local name, artist, album
|
local name, artist, album
|
||||||
|
|
Loading…
Reference in New Issue