myanimelist.lua: Mehr Alternativtitel falls vorhanden

This commit is contained in:
Akamaru 2015-12-05 22:35:59 +01:00
parent b2432485ca
commit a55d2ea60a

View File

@ -48,6 +48,12 @@ local function send_anime_data(result, receiver)
else else
syno = '' syno = ''
end end
if xml.find(result, 'english')[1] then
eng = '; '..unescape(delete_tags(xml.find(result, 'english')[1]))
else
eng = ''
end
if xml.find(result, 'episodes')[1] then if xml.find(result, 'episodes')[1] then
episodes = '\nEpisoden: '..xml.find(result, 'episodes')[1] episodes = '\nEpisoden: '..xml.find(result, 'episodes')[1]
@ -85,7 +91,7 @@ local function send_anime_data(result, receiver)
desc = '' desc = ''
end end
local text = title..typ..syno..episodes..status..score..startdate..enddate..'\n'..desc..'\n'..mal_url local text = title..typ..syno..eng..episodes..status..score..startdate..enddate..'\n'..desc..'\n'..mal_url
if xml.find(result, 'image') then if xml.find(result, 'image') then
local image_url = xml.find(result, 'image')[1] local image_url = xml.find(result, 'image')[1]
local cb_extra = { local cb_extra = {