Leck mich doch...
This commit is contained in:
parent
626202ddae
commit
5060c42fab
@ -338,25 +338,25 @@ function rss:cron()
|
|||||||
if string.len(v2.content) > 250 then
|
if string.len(v2.content) > 250 then
|
||||||
content = cleanRSS(content)
|
content = cleanRSS(content)
|
||||||
content = unescape(content)
|
content = unescape(content)
|
||||||
content = '\n'..string.sub(content, 1, 250)..'...'
|
content = string.sub(content, 1, 250)..'...'
|
||||||
else
|
else
|
||||||
content = cleanRSS(content)
|
content = cleanRSS(content)
|
||||||
content = '\n'..unescape(content)
|
content = unescape(content)
|
||||||
end
|
end
|
||||||
elseif v2.summary then
|
elseif v2.summary then
|
||||||
content = v2.summary:gsub("%b<>", "")
|
content = v2.summary:gsub("%b<>", "")
|
||||||
if string.len(v2.summary) > 250 then
|
if string.len(v2.summary) > 250 then
|
||||||
content = cleanRSS(content)
|
content = cleanRSS(content)
|
||||||
content = unescape(content)
|
content = unescape(content)
|
||||||
content = '\n'..string.sub(content, 1, 250)..'...'
|
content = string.sub(content, 1, 250)..'...'
|
||||||
else
|
else
|
||||||
content = cleanRSS(content)
|
content = cleanRSS(content)
|
||||||
content = '\n'..unescape(content)
|
content = unescape(content)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
content = ''
|
content = ''
|
||||||
end
|
end
|
||||||
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>'..feed_title..'</i>'..utilities.trim(content)..'\n<a href="'..link..'">Auf '..link_name..' ansehen.</a>\n'
|
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>'..feed_title..'</i>\n'..utilities.trim(content)..'\n<a href="'..link..'">Auf '..link_name..' ansehen.</a>\n'
|
||||||
end
|
end
|
||||||
if text ~= '' then
|
if text ~= '' then
|
||||||
local newlast = newentr[1].id
|
local newlast = newentr[1].id
|
||||||
|
Reference in New Issue
Block a user