% if activity is not None: % if activity['stream_count'] != '0': % for a in activity['sessions']:
% if a['type'] == 'track-to-do':
% elif a['type'] == 'movie':
% else:
% endif
${a['progressPercent']}%
${a['user']} is ${a['state']}
% if a['type'] == 'episode': ${a['grandparentTitle']} - ${a['title']} % elif a['type'] == 'movie': ${a['title']} % elif a['type'] == 'track': ${a['artist']} - ${a['track']} % else: ${a['grandparentTitle']} - ${a['title']} % endif
% if a['type'] == 'track': Artist: ${a['artist']}
Album: ${a['album']}
% endif % if a['state'] == 'playing': State: Playing % elif a['state'] == 'paused': State: Paused % elif a['state'] == 'buffering': State: Buffering % endif
% if a['type'] == 'track': % if a['audioDecision'] == 'direct play': Stream: Direct Play % else: Stream: Transcoding % endif
Audio: ${a['audioCodec']} (${a['audioChannels']}ch) % elif a['type'] == 'episode' or a['type'] == 'movie': % if a['videoDecision'] == 'direct play': Stream: Direct Play % else: Stream: Transcoding % endif
Video: ${a['videoDecision']} (${a['videoCodec']}) (${a['width']}x${a['height']})
Audio: ${a['audioDecision']} (${a['audioCodec']}) (${a['audioChannels']}ch) % endif
% endfor % else:
Nothing is currently being watched.
% endif % else:
There was an error communicating with your Plex Server. Please check your settings.
% endif