plex.lua: Ausgabe für keine Ergebnisse
This commit is contained in:
parent
d457b39b06
commit
678585ad49
@ -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
|
||||
|
||||
if string.match(title, 'Local Network') then
|
||||
return 'Nichts gefunden!'
|
||||
else
|
||||
return text, pic
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function plex:action(msg, config)
|
||||
|
Reference in New Issue
Block a user