From 84e5c8d7db43fa89c12611f557d4fdd70d855403 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sun, 11 Sep 2016 20:28:30 +0200 Subject: [PATCH] =?UTF-8?q?Plex:=20Kleine=20=C3=84nderung=20an=20date=20&?= =?UTF-8?q?=20Option=20f=C3=BCr=20"Dokus"=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miku/plugins/plex.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/miku/plugins/plex.lua b/miku/plugins/plex.lua index ae85837..8d7dac2 100644 --- a/miku/plugins/plex.lua +++ b/miku/plugins/plex.lua @@ -88,6 +88,9 @@ function plex:get_plex(query) else date = '' end + + local date1 = '\nAusstrahlung: '..date + local date2 = '\nVeröffentlicht: '..date if data.leafCount then if data.leafCount > 1 then @@ -135,17 +138,19 @@ function plex:get_plex(query) end if data.librarySectionTitle == 'Animes' then - text = title..from..studio..'\nAusstrahlung: '..date..episodes..fsk..duration..rating..desc + text = title..from..studio..date1..episodes..fsk..duration..rating..desc elseif data.librarySectionTitle == 'Cartoons' then - text = title..from..studio..'\nAusstrahlung: '..date..episodes..fsk..duration..rating..desc + text = title..from..studio..date1..episodes..fsk..duration..rating..desc + elseif data.librarySectionTitle == 'Dokus' then + text = title..tag..origtitle..studio..date2..fsk..duration..rating..desc elseif data.librarySectionTitle == 'Filme' then - text = title..tag..origtitle..studio..'\nVeröffentlicht: '..date..fsk..duration..rating..desc + text = title..tag..origtitle..studio..date2..fsk..duration..rating..desc elseif data.librarySectionTitle == 'Musik' then - text = title..' von '..artist..'\nVeröffentlicht: '..date + text = title..' von '..artist..date2 elseif data.librarySectionTitle == 'Serien' then - text = title..from..studio..'\nAusstrahlung: '..date..episodes..fsk..duration..rating..desc + text = title..from..studio..date1..episodes..fsk..duration..rating..desc elseif data.librarySectionTitle == 'YouTube Serien' then - text = title..from..studio..'\nAusstrahlung: '..date..episodes..fsk..duration..rating..desc + text = title..from..studio..date1..episodes..fsk..duration..rating..desc end if string.match(title, 'Local Network') then