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, '<br />', '')
str = string.gsub( str, '%[i%]', '') str = string.gsub( str, '%[i%]', '')
str = string.gsub( str, '%[/i%]', '') str = string.gsub( str, '%[/i%]', '')
str = string.gsub( str, '&mdash;', '')
return str return str
end end
@ -43,7 +44,7 @@ local function send_anime_data(result, receiver)
end end
if xml.find(result, 'synonyms')[1] then 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 else
syno = '' syno = ''
end end