diff --git a/data/interfaces/default/current_activity_instance.html b/data/interfaces/default/current_activity_instance.html index aca120cf..b7bfa25c 100644 --- a/data/interfaces/default/current_activity_instance.html +++ b/data/interfaces/default/current_activity_instance.html @@ -72,7 +72,7 @@ DOCUMENTATION :: END data-rating_key="${data['rating_key']}" data-parent_rating_key="${data['parent_rating_key']}" data-grandparent_rating_key="${data['grandparent_rating_key']}">
- % if data['channel_stream'] == '0': + % if data['channel_stream'] == 0:
% else: % if (data['art'] and data['art'].startswith('http')) or (data['thumb'] and data['thumb'].startswith('http')): @@ -86,7 +86,7 @@ DOCUMENTATION :: END % if data['media_type'] == 'track':
% endif - % if data['channel_stream'] == '0': + % if data['channel_stream'] == 0: % if data['media_type'] == 'movie':
@@ -158,7 +158,7 @@ DOCUMENTATION :: END % endif
- % if data['optimized_version'] == '1': + % if data['optimized_version'] == 1:
  • Optimized
    @@ -177,7 +177,7 @@ DOCUMENTATION :: END
    % if data['transcode_decision'] == 'transcode': Transcode - % if data['transcode_throttled'] == '1': + % if data['transcode_throttled'] == 1: (Throttled) % else: (Speed: ${data['transcode_speed']}) @@ -185,7 +185,7 @@ DOCUMENTATION :: END % elif data['transcode_decision'] == 'copy': Direct Stream % else: - Direct Play ${'(Synced)' if data['synced_version'] == '1' else ''} + Direct Play ${'(Synced)' if data['synced_version'] == 1 else ''} % endif
  • @@ -207,9 +207,9 @@ DOCUMENTATION :: END % if data.get('stream_video_decision') == 'transcode': <% hw_d = hw_e = '' - if data['transcode_hw_requested'] == '1' and data['transcode_hw_full_pipeline'] == '0': + if data['transcode_hw_requested'] == 1 and data['transcode_hw_full_pipeline'] == 0: hw_d = ' (HW)' - elif data['transcode_hw_requested'] == '1' and data['transcode_hw_full_pipeline'] == '1': + elif data['transcode_hw_requested'] == 1 and data['transcode_hw_full_pipeline'] == 1: hw_d = hw_e = ' (HW)' %> Transcode (${data['video_codec'].upper()}${hw_d} ${plexpy.common.VIDEO_RESOLUTION_OVERRIDES.get(data['video_resolution'], data['video_resolution'])} → ${data['stream_video_codec'].upper()}${hw_e} ${plexpy.common.VIDEO_RESOLUTION_OVERRIDES.get(data['stream_video_resolution'], data['stream_video_resolution'])}) @@ -242,7 +242,7 @@ DOCUMENTATION :: END
  • Subtitle
    - % if data['subtitles'] == '1': + % if data['subtitles'] == 1: % if data['stream_subtitle_decision'] == 'transcode': Transcode (${data['subtitle_codec'].upper()} → ${data['stream_subtitle_codec'].upper()}) % elif data['stream_subtitle_decision'] == 'copy': @@ -264,7 +264,7 @@ DOCUMENTATION :: END
    Location
    % if data['ip_address'] != 'N/A': - ${'LAN' if data['local'] == '1' else 'WAN'}: ${data['ip_address']} + ${'LAN' if data['local'] == 1 else 'WAN'}: ${data['ip_address']} @@ -294,7 +294,7 @@ DOCUMENTATION :: END %> ${bw} - % elif data['synced_version'] == '1' or data['channel_stream'] == '1': + % elif data['synced_version'] == 1 or data['channel_stream'] == 1: None % else: Unknown @@ -358,7 +358,7 @@ DOCUMENTATION :: END % endif