Update rss.lua & facebook.lua
rss.lua: Ignoriere "[swr]" und "(RSS generated with FetchRss)" facebook.lua: Ignoriere Live-Videos (Von Brawl345/Brawlbot-v2)
This commit is contained in:
parent
3b8a5ccbd7
commit
79b82c2d9d
@ -91,7 +91,7 @@ function facebook:send_facebook_video(video_id)
|
||||
local data = json.decode(res)
|
||||
|
||||
local from = '*'..data.from.name..'*'
|
||||
local description = data.description
|
||||
local description = data.description or ''
|
||||
local source = data.source
|
||||
return from..' hat ein Video gepostet:\n'..description, source, data.title
|
||||
end
|
||||
|
@ -84,11 +84,13 @@ function cleanRSS(str)
|
||||
str = string.gsub(str, '...%[more%]', '')
|
||||
str = string.gsub(str, '%[more%]', '')
|
||||
str = string.gsub(str, '%[phoenix%]', '')
|
||||
str = string.gsub(str, '%[swr%]', '')
|
||||
str = string.gsub(str, 'Click for full.', '')
|
||||
str = string.gsub(str, 'Read more »', '')
|
||||
str = string.gsub(str, 'Read more', '')
|
||||
str = string.gsub(str, '%(more…%)', '')
|
||||
str = string.gsub(str, 'View On WordPress', '')
|
||||
str = string.gsub(str, '%(RSS generated with FetchRss%)', '')
|
||||
str = string.gsub(str, 'Meldung bei www%.tagesschau%.de lesen', '')
|
||||
return str
|
||||
end
|
||||
|
Reference in New Issue
Block a user