diff --git a/miku/plugins/plex.lua b/miku/plugins/plex.lua index e8e353f..c26f5c6 100644 --- a/miku/plugins/plex.lua +++ b/miku/plugins/plex.lua @@ -110,7 +110,11 @@ function plex:get_plex(query) end if data.summary then - desc = '\n\n'..string.sub(unescape(data.summary:gsub("%b<>", "")), 1, DESC_LENTH)..'...' + if string.len(data.summary) > 400 then + desc = '\n\n'..string.sub(unescape(data.summary:gsub("%b<>", "")), 1, DESC_LENTH)..'...' + else + desc = '\n\n'..unescape(data.summary)..'' + end else desc = '' end @@ -121,7 +125,7 @@ function plex:get_plex(query) pic = nil end - local text = title..tag..from..origtitle..studio..date..episodes..fsk..duration..rating..desc..'\n' + local text = title..tag..from..origtitle..studio..date..episodes..fsk..duration..rating..desc return text, pic end