Plex: Kleine Änderung an date & Option für "Dokus" hinzugefügt

This commit is contained in:
Akamaru 2016-09-11 20:28:30 +02:00
parent 95aa3049b8
commit 84e5c8d7db

View File

@ -89,6 +89,9 @@ function plex:get_plex(query)
date = ''
end
local date1 = '\n<b>Ausstrahlung:</b> '..date
local date2 = '\n<b>Veröffentlicht:</b> '..date
if data.leafCount then
if data.leafCount > 1 then
episodes = ' ('..data.leafCount..' Episoden) '
@ -135,17 +138,19 @@ function plex:get_plex(query)
end
if data.librarySectionTitle == 'Animes' then
text = title..from..studio..'\n<b>Ausstrahlung:</b> '..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..'\n<b>Ausstrahlung:</b> '..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..'\n<b>Veröffentlicht:</b> '..date..fsk..duration..rating..desc
text = title..tag..origtitle..studio..date2..fsk..duration..rating..desc
elseif data.librarySectionTitle == 'Musik' then
text = title..' von '..artist..'\n<b>Veröffentlicht:</b> '..date
text = title..' von '..artist..date2
elseif data.librarySectionTitle == 'Serien' then
text = title..from..studio..'\n<b>Ausstrahlung:</b> '..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..'\n<b>Ausstrahlung:</b> '..date..episodes..fsk..duration..rating..desc
text = title..from..studio..date1..episodes..fsk..duration..rating..desc
end
if string.match(title, 'Local Network') then