plex.lua: Ausgabe für keine Ergebnisse

This commit is contained in:
Akamaru 2016-08-18 16:07:21 +02:00
parent d457b39b06
commit 678585ad49

View File

@ -38,7 +38,6 @@ function plex:get_plex(query)
local data = json.decode(table.concat(response_body))._children[1]
local title = '<b>'..data.title..'</b>'
if not title then return nil end
if data.tagline then
tag = ' - <i>'..data.tagline..'</i>'
@ -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)