kleine fixes
This commit is contained in:
parent
d031a1f7ba
commit
919561b34c
@ -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, '—', ' — ')
|
||||
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
|
||||
|
Reference in New Issue
Block a user