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 data = json.decode(table.concat(response_body))._children[1]
|
||||||
|
|
||||||
local title = '<b>'..data.title..'</b>'
|
local title = '<b>'..data.title..'</b>'
|
||||||
if not title then return nil end
|
|
||||||
|
|
||||||
if data.tagline then
|
if data.tagline then
|
||||||
tag = ' - <i>'..data.tagline..'</i>'
|
tag = ' - <i>'..data.tagline..'</i>'
|
||||||
@ -126,7 +125,13 @@ function plex:get_plex(query)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local text = title..tag..from..origtitle..studio..date..episodes..fsk..duration..rating..desc
|
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
|
return text, pic
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function plex:action(msg, config)
|
function plex:action(msg, config)
|
||||||
|
Reference in New Issue
Block a user