Tagesschau-Eilmeldungen werden jetzt per Datum verglichen, nicht mehr per Link

This commit is contained in:
Andreas Bielawski 2016-06-27 20:42:01 +02:00
parent 8367c17459
commit c4fa575bc5

View File

@ -99,7 +99,7 @@ function tagesschau_eil:cron(self_plz)
local post_url = string.gsub(data.breakingnews[1].details, '/api/', '/')
local post_url = string.gsub(post_url, '.json', '.html')
local eil = title..'\n_'..posted_at..'_\n'..news..'\n[Artikel aufrufen]('..post_url..')'
redis:set(hash..':last_entry', data.breakingnews[1].details)
redis:set(hash..':last_entry', data.breakingnews[1].date)
for _,user in pairs(redis:smembers(hash..':subs')) do
local user = string.gsub(user, 'chat%#id', '')
local user = string.gsub(user, 'user%#id', '')