From 71b28e4ff07532e3dab0e079fa98f8a169f87886 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Wed, 4 Oct 2017 23:02:10 +0200 Subject: [PATCH] Plex: Genre bei Musik (vorerst) --- miku/plugins/plex.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/miku/plugins/plex.lua b/miku/plugins/plex.lua index c7b13d1..729b3b0 100644 --- a/miku/plugins/plex.lua +++ b/miku/plugins/plex.lua @@ -135,6 +135,12 @@ function plex:get_plex(query) rating = '' end + if data.Genre[1] then + genre = '\nGenre: '..data.Genre[1].tag + else + genre = '' + end + if data.summary then if string.len(data.summary) > 400 then desc = '\n\n'..string.sub(unescape(data.summary:gsub("%b<>", "")), 1, DESC_LENTH)..'...' @@ -164,9 +170,7 @@ function plex:get_plex(query) elseif data.librarySectionTitle == 'Gronkh Streams' then text = title..tag..origtitle..studio..date2..fsk..duration..rating..desc elseif data.librarySectionTitle == 'Musik' then - text = title..artist..musicDate..desc - elseif data.librarySectionTitle == 'Musik (Unsortiert!)' then - text = title..artist..musicDate..desc + text = title..artist..musicDate..genre..desc elseif data.librarySectionTitle == 'Musikvideos' then text = title..tag..origtitle..studio..date2..fsk..duration..rating..desc elseif data.librarySectionTitle == 'Serien' then