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)