Feedburner link_name

This commit is contained in:
Akamaru 2016-10-11 21:10:43 +02:00
parent 3c1cfbd9b3
commit e876cbd2c3

View File

@ -328,7 +328,10 @@ function rss:cron()
local title = unescape(v2.title) or 'Kein Titel' local title = unescape(v2.title) or 'Kein Titel'
local link = v2.link or v2.id or 'Kein Link' local link = v2.link or v2.id or 'Kein Link'
local link_name = link:match('^%w+://([^/]+)') local link_name = link:match('^%w+://([^/]+)')
local link_name = link_name:gsub("^www%.", "") local link_name = link_name:gsub('^www%.', '')
if link_name == 'feedproxy.google.com' then
link_name = link:match('feedproxy%.google%.com/~r/(.+)/~')
end
if v2.content then if v2.content then
content = v2.content:gsub("%b<>", "") content = v2.content:gsub("%b<>", "")
if string.len(v2.content) > 250 then if string.len(v2.content) > 250 then