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, '<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, '—', ' — ')
|
||||||
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
|
||||||
@ -79,7 +80,7 @@ local function send_anime_data(result, receiver)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if xml.find(result, 'synopsis')[1] then
|
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
|
else
|
||||||
desc = ''
|
desc = ''
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user