Tagesschau-EIL-Fix

This commit is contained in:
Andreas Bielawski 2016-09-28 23:04:35 +02:00
parent 3007e6b80f
commit e828e6235f

View File

@ -81,6 +81,7 @@ function tagesschau_eil:cron()
if code ~= 200 then return end if code ~= 200 then return end
local data = json.decode(res) local data = json.decode(res)
if not data then return end if not data then return end
if data.error then return end
if data.breakingnews[1] then if data.breakingnews[1] then
if data.breakingnews[1].date ~= last_eil then if data.breakingnews[1].date ~= last_eil then
local title = '#EIL: <b>'..data.breakingnews[1].headline..'</b>' local title = '#EIL: <b>'..data.breakingnews[1].headline..'</b>'