syno und eng getauscht
This commit is contained in:
parent
c1ae727c3e
commit
e3c4d404bd
@ -21,10 +21,10 @@ end
|
||||
local makeOurDate = function(dateString)
|
||||
local pattern = "(%d+)%-(%d+)%-(%d+)"
|
||||
local year, month, day = dateString:match(pattern)
|
||||
if day == "00" then
|
||||
return month..'.'..year
|
||||
elseif month == "00" then
|
||||
if month == "00" then
|
||||
return year
|
||||
elseif day == "00" then
|
||||
return month..'.'..year
|
||||
else
|
||||
return day..'.'..month..'.'..year
|
||||
end
|
||||
@ -49,18 +49,18 @@ local function send_anime_data(result, receiver)
|
||||
typ = ''
|
||||
end
|
||||
|
||||
if xml.find(result, 'synonyms')[1] then
|
||||
syno = '\nAlternativ: '..unescape(delete_tags(xml.find(result, 'synonyms')[1]))
|
||||
else
|
||||
syno = ''
|
||||
end
|
||||
|
||||
if xml.find(result, 'english')[1] then
|
||||
eng = '\nEnglisch: '..unescape(delete_tags(xml.find(result, 'english')[1]))
|
||||
else
|
||||
eng = ''
|
||||
end
|
||||
|
||||
if xml.find(result, 'synonyms')[1] then
|
||||
syno = '\nAlternativ: '..unescape(delete_tags(xml.find(result, 'synonyms')[1]))
|
||||
else
|
||||
syno = ''
|
||||
end
|
||||
|
||||
if xml.find(result, 'episodes')[1] then
|
||||
episodes = '\nEpisoden: '..xml.find(result, 'episodes')[1]
|
||||
else
|
||||
@ -97,7 +97,7 @@ local function send_anime_data(result, receiver)
|
||||
desc = ''
|
||||
end
|
||||
|
||||
local text = title..typ..syno..eng..episodes..status..score..startdate..enddate..'\n'..desc..'\n'..mal_url
|
||||
local text = title..typ..eng..syno..episodes..status..score..startdate..enddate..'\n'..desc..'\n'..mal_url
|
||||
|
||||
if xml.find(result, 'image') then
|
||||
local image_url = xml.find(result, 'image')[1]
|
||||
|
Reference in New Issue
Block a user