rss.lua: fix for youtube rss

This commit is contained in:
Akamaru 2015-09-13 19:37:45 +02:00
parent 8b15ebef4d
commit a476467a3f

View File

@ -177,8 +177,10 @@ local function cron()
local link = v2.link or v2.id or 'Kein Link' local link = v2.link or v2.id or 'Kein Link'
if v2.content then if v2.content then
content = string.sub(unescape_for_rss(v2.content:gsub("%b<>", "")), 1, 250) .. '...' content = string.sub(unescape_for_rss(v2.content:gsub("%b<>", "")), 1, 250) .. '...'
else elseif v2.summary then
content = string.sub(unescape_for_rss(v2.summary:gsub("%b<>", "")), 1, 250) .. '...' content = string.sub(unescape_for_rss(v2.summary:gsub("%b<>", "")), 1, 250) .. '...'
else
content = ''
end end
text = text .. '[RSS] '.. title .. '\n'..content..'\n\n(' .. link .. ')\n\n' text = text .. '[RSS] '.. title .. '\n'..content..'\n\n(' .. link .. ')\n\n'
end end