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