From e828e6235fcb2a841d108df86ffed2e145ddbfdd Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 28 Sep 2016 23:04:35 +0200 Subject: [PATCH] Tagesschau-EIL-Fix --- otouto/plugins/tagesschau_eil.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/otouto/plugins/tagesschau_eil.lua b/otouto/plugins/tagesschau_eil.lua index 1347bcc..4a4197c 100644 --- a/otouto/plugins/tagesschau_eil.lua +++ b/otouto/plugins/tagesschau_eil.lua @@ -81,6 +81,7 @@ function tagesschau_eil:cron() if code ~= 200 then return end local data = json.decode(res) if not data then return end + if data.error then return end if data.breakingnews[1] then if data.breakingnews[1].date ~= last_eil then local title = '#EIL: '..data.breakingnews[1].headline..''