kleine fixes

This commit is contained in:
Akamaru 2015-11-15 20:23:44 +01:00
parent d031a1f7ba
commit 919561b34c

View File

@ -14,6 +14,7 @@ local function delete_tags(str)
str = string.gsub( str, '<br />', '')
str = string.gsub( str, '%[i%]', '')
str = string.gsub( str, '%[/i%]', '')
str = string.gsub( str, '&mdash;', '')
return str
end
@ -43,7 +44,7 @@ local function send_anime_data(result, receiver)
end
if xml.find(result, 'synonyms')[1] then
syno = '\nAlternativ: '..unescape(delete_tags(string.sub(xml.find(result, 'synonyms')[1], 1, 200)))
syno = '\nAlternativ: '..unescape(delete_tags(xml.find(result, 'synonyms')[1]))
else
syno = ''
end
@ -79,7 +80,7 @@ local function send_anime_data(result, receiver)
end
if xml.find(result, 'synopsis')[1] then
desc = '\n'..unescape(delete_tags(string.sub(xml.find(result, 'synopsis')[1], 1, 200))) .. '...'
desc = '\n'..unescape(delete_tags(string.sub(xml.find(result, 'synopsis')[1], 1, 200)))..'...'
else
desc = ''
end