From 678585ad49f72daa6387debaf3a570b37a66c4ff Mon Sep 17 00:00:00 2001 From: Akamaru Date: Thu, 18 Aug 2016 16:07:21 +0200 Subject: [PATCH] =?UTF-8?q?plex.lua:=20Ausgabe=20f=C3=BCr=20keine=20Ergebn?= =?UTF-8?q?isse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miku/plugins/plex.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/miku/plugins/plex.lua b/miku/plugins/plex.lua index c26f5c6..cfb2760 100644 --- a/miku/plugins/plex.lua +++ b/miku/plugins/plex.lua @@ -38,7 +38,6 @@ function plex:get_plex(query) local data = json.decode(table.concat(response_body))._children[1] local title = ''..data.title..'' - if not title then return nil end if data.tagline then tag = ' - '..data.tagline..'' @@ -126,7 +125,13 @@ function plex:get_plex(query) end local text = title..tag..from..origtitle..studio..date..episodes..fsk..duration..rating..desc - return text, pic + + if string.match(title, 'Local Network') then + return 'Nichts gefunden!' + else + return text, pic + end + end function plex:action(msg, config)