Plex: Genre bei Musik (vorerst)

This commit is contained in:
Akamaru 2017-10-04 23:02:10 +02:00
parent 5aa92aade5
commit 71b28e4ff0

View File

@ -135,6 +135,12 @@ function plex:get_plex(query)
rating = ''
end
if data.Genre[1] then
genre = '\n<b>Genre:</b> '..data.Genre[1].tag
else
genre = ''
end
if data.summary then
if string.len(data.summary) > 400 then
desc = '\n\n<i>'..string.sub(unescape(data.summary:gsub("%b<>", "")), 1, DESC_LENTH)..'...</i>'
@ -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