diff --git a/plugins/plex.lua b/plugins/plex.lua index dce7a32..c3cb15c 100644 --- a/plugins/plex.lua +++ b/plugins/plex.lua @@ -61,16 +61,30 @@ local data = json:decode(table.concat(response_body))._children[1] if data.originallyAvailableAt then date = '\nAusstrahlung: '..makeOurDate(data.originallyAvailableAt) + elseif data.year then + date = '\nAusstrahlung: '..data.year else date = '' end + if data.leafCount then + episodes = ' ('..data.leafCount..' Episoden) ' + else + episodes = '' + end + if data.contentRating then fsk = '\nAltersfreigabe: '..gerRating(data.contentRating) else fsk = '' end + if data.duration then + duration = '\nLänge: '..formatMilliseconds(data.duration) + else + duration = '' + end + if data.rating then rating = '\nBewertung: '..data.rating else @@ -87,7 +101,7 @@ local data = json:decode(table.concat(response_body))._children[1] pic = baseurl..data.thumb 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