rss.lua: Seitentitel nun im Feed
This commit is contained in:
parent
244c933435
commit
e5f08801ab
@ -316,7 +316,11 @@ function rss:cron()
|
|||||||
if err ~= nil then
|
if err ~= nil then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- local feed_title = parsed.feed.title
|
if not parsed.feed.title then
|
||||||
|
feed_title = parsed.feed.link
|
||||||
|
else
|
||||||
|
feed_title = parsed.feed.title
|
||||||
|
end
|
||||||
local newentr = get_new_entries(last, parsed.entries)
|
local newentr = get_new_entries(last, parsed.entries)
|
||||||
local subscribers = {}
|
local subscribers = {}
|
||||||
local text = '' -- Send one message per feed with the latest entries
|
local text = '' -- Send one message per feed with the latest entries
|
||||||
@ -346,7 +350,7 @@ function rss:cron()
|
|||||||
else
|
else
|
||||||
content = ''
|
content = ''
|
||||||
end
|
end
|
||||||
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n'..utilities.trim(content)..' <a href="'..link..'">Weiterlesen</a>\n'
|
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>'..feed_title..'</i>\n'..utilities.trim(content)..' <a href="'..link..'">Weiterlesen</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