Episodenanzahl und Spiellänge zum Plex Plugin hinzugefügt

This commit is contained in:
Akamaru 2016-03-01 13:04:39 +01:00
parent 5a990bf663
commit 33ef0ec3c0

View File

@ -61,16 +61,30 @@ local data = json:decode(table.concat(response_body))._children[1]
if data.originallyAvailableAt then if data.originallyAvailableAt then
date = '\nAusstrahlung: '..makeOurDate(data.originallyAvailableAt) date = '\nAusstrahlung: '..makeOurDate(data.originallyAvailableAt)
elseif data.year then
date = '\nAusstrahlung: '..data.year
else else
date = '' date = ''
end end
if data.leafCount then
episodes = ' ('..data.leafCount..' Episoden) '
else
episodes = ''
end
if data.contentRating then if data.contentRating then
fsk = '\nAltersfreigabe: '..gerRating(data.contentRating) fsk = '\nAltersfreigabe: '..gerRating(data.contentRating)
else else
fsk = '' fsk = ''
end end
if data.duration then
duration = '\nLänge: '..formatMilliseconds(data.duration)
else
duration = ''
end
if data.rating then if data.rating then
rating = '\nBewertung: '..data.rating rating = '\nBewertung: '..data.rating
else else
@ -87,7 +101,7 @@ local data = json:decode(table.concat(response_body))._children[1]
pic = baseurl..data.thumb pic = baseurl..data.thumb
end end
local text = title..from..origtitle..studio..date..fsk..rating..desc..'\n' local text = title..from..origtitle..studio..date..episodes..fsk..duration..rating..desc..'\n'
if data.thumb then if data.thumb then