Feedburner link_name
This commit is contained in:
parent
3c1cfbd9b3
commit
e876cbd2c3
@ -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
|
||||||
|
Reference in New Issue
Block a user