From bc1452d1d0fd891ae738e689956057a78d5488c8 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 25 Sep 2016 17:18:15 -0700 Subject: [PATCH] Remove old current activity template --- data/interfaces/default/current_activity.html | 328 ------------------ 1 file changed, 328 deletions(-) delete mode 100644 data/interfaces/default/current_activity.html diff --git a/data/interfaces/default/current_activity.html b/data/interfaces/default/current_activity.html deleted file mode 100644 index 1e309645..00000000 --- a/data/interfaces/default/current_activity.html +++ /dev/null @@ -1,328 +0,0 @@ -<%doc> -USAGE DOCUMENTATION :: PLEASE LEAVE THIS AT THE TOP OF THIS FILE - -For Mako templating syntax documentation please visit: http://docs.makotemplates.org/en/latest/ - -Filename: current_activity.html -Version: 0.1 -Variable names: data [list] - -data :: Usable parameters - -data['stream_count'] Returns the current number of active streams -data['sessions'] Returns an array containing session data - -data[sessions] :: Usable parameters - -== Global keys == -session_key Returns a unique session id for the active stream -rating_key Returns the unique identifier for the media item. -media_index Returns the index of the media item. -parent_media_index Returns the index of the media item's parent. -media_type Returns the type of session. Either 'track', 'episode' or 'movie'. -thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. -bif_thumb Returns the location of the item's bif thumbnail. Use with pms_image_proxy. -art Returns the location of the item's artwork -progress_percent Returns the current progress of the item. 0 to 100. -user Returns the name of the user owning the session. -user_id Returns the Plex user id if available. -machine_id Returns the machine id of the players being used. -friendly_name Returns the friendlly name of the user owning the session. -user_thumb Returns the profile picture of the user owning the session. -state Returns the state of the current session. Either 'playing', 'paused' or 'buffering'. -title Returns the name of the episode, movie or music track. -year Returns the year of the episode, movie, or clip. -ip_address Returns the ip address of the stream. -player Returns the name of the platform used to play the stream. -platform Returns the type of platform used to play the stream. -throttled Returns true if the transcode session is throttled. -transcode_progress Returns the current transcode progress of the item. 0 to 100. -transcode_speed Returns the current transcode speed of the item. -audio_decision Returns the audio transcode decision. Either 'transcode', 'copy' or 'direct play'. -audio_codec Returns the name of the audio codec. -audio_channels Returns the number of audio channels. -grandparent_title Returns the title of the item's grandparent. -parent_title Returns the title of the item's parent. -video_decision Returns the video transcode decision. Either 'transcode', 'copy' or 'direct play'. -video_codec Returns the name of the video codec. -height Returns the value of the video height. -width Returns the value of the video width. -container Returns the value of the media container. -bitrate Returns the value of the media bitrate. -video_resolution Returns the value of the video resolution. -video_framerate Returns the value of the video framerate. -video_aspect_ratio Returns the value of the video aspect ratio. -transcode_audio_channels Returns the amount of audio channels if there is a transcode session. -transcode_audio_codec Returns the name of the audio codec if there is a transcode session. -transcode_video_codec Returns the name of the video codec if there is a transcode session. -transcode_width Returns the video width if there is a transcode session. -transcode_height Returns the video height if there is a transcode session. -transcode_container Returns the value of media container if there is a transcode session. -transcode_protocol Returns the value of media protocol if there is a transcode session. -indexes Returns true if the media has media indexes and are enabled - -DOCUMENTATION :: END - - -% if data is not None: -% if data['stream_count'] != '0': -% for a in data['sessions']: -
- % if (a['media_type'] == 'movie' or a['media_type'] == 'episode' or a['media_type'] == 'track') and a['rating_key']: - - % else: - - % endif -
- % if not a['art'].startswith('interfaces') or not a['thumb'].startswith('interfaces'): - % if (a['media_type'] == 'movie' and not a['indexes']) or (a['indexes'] and not a['view_offset']): -
- % elif (a['media_type'] == 'episode' and not a['indexes']) or (a['indexes'] and not a['view_offset']): -
- % elif a['indexes']: - - % else: - % if a['media_type'] == 'track': -
-
- % elif a['media_type'] == 'clip': - % if a['art'][:4] == 'http': -
- % elif a['thumb'][:4] == 'http': -
- % else: - % if a['art']: -
- % else: -
- % endif - % endif - % elif a['media_type'] == 'photo': -
- % else: -
- % endif - % endif - % else: -
- % endif - % if _session['user_group'] == 'admin': - - % endif -
- -
-
-
-
- -
-
- ${a['player']}
- % if a['state'] == 'playing': - State  Playing - % elif a['state'] == 'paused': - State  Paused - % elif a['state'] == 'buffering': - State  Buffering - % endif -
- % if a['media_type'] == 'track': - % if a['audio_decision'] == 'direct play': - Stream  Direct Play - % elif a['audio_decision'] == 'copy': - Stream  Direct Stream - % else: - Stream  Transcoding - (Speed: ${a['transcode_speed']}) - % if a['throttled'] == '1': - (Throttled) - % endif - - % endif -
- % if a['audio_decision'] == 'direct play': - Audio  Direct Play (${a['audio_codec']}) (${a['audio_channels']}ch) - % elif a['audio_decision'] == 'copy': - Audio  Direct Stream (${a['transcode_audio_codec']}) (${a['transcode_audio_channels']}ch) - % elif a['audio_decision'] == 'transcode': - Audio  Transcode (${a['transcode_audio_codec']}) (${a['transcode_audio_channels']}ch) - % endif - % elif a['media_type'] == 'episode' or a['media_type'] == 'movie' or a['media_type'] == 'clip': - % if a['video_decision'] == 'direct play' and a['audio_decision'] == 'direct play': - Stream  Direct Play - % elif a['video_decision'] == 'copy' and a['audio_decision'] == 'copy': - Stream  Direct Stream - % else: - Stream  Transcoding - (Speed: ${a['transcode_speed']}) - % if a['throttled'] == '1': - (Throttled) - % endif - - % endif -
- % if a['video_decision'] == 'direct play': - Video  Direct Play (${a['video_codec']}) (${a['width']}x${a['height']}) - % elif a['video_decision'] == 'copy': - Video  Direct Stream (${a['transcode_video_codec']}) (${a['width']}x${a['height']}) - % elif a['video_decision'] == 'transcode': - Video  Transcode (${a['transcode_video_codec']}) (${a['transcode_width']}x${a['transcode_height']}) - % endif -
- % if a['audio_decision'] == 'direct play': - Audio  Direct Play (${a['audio_codec']}) (${a['audio_channels']}ch) - % elif a['audio_decision'] == 'copy': - Audio  Direct Stream (${a['transcode_audio_codec']}) (${a['transcode_audio_channels']}ch) - % elif a['audio_decision'] == 'transcode': - Audio  Transcode (${a['transcode_audio_codec']}) (${a['transcode_audio_channels']}ch) - % endif - % elif a['media_type'] == 'photo': - % if a['video_decision'] == 'direct play': - Stream  Direct Play - % elif a['video_decision'] == 'copy': - Stream  Direct Stream - % else: - Stream   - Transcoding - (Speed: ${a['transcode_speed']}) - % if a['throttled'] == '1': - (Throttled) - % endif - - % endif - % endif -
-
-
- % if a['media_type'] != 'photo': -
-
- % if a['ip_address']: - IP: ${a['ip_address']} - % else: - IP: N/A - % endif -
- ETA: - - - -
-
- ${a['view_offset']}/${a['duration']} -
-
- % endif -
- % if (a['media_type'] == 'movie' or a['media_type'] == 'episode' or a['media_type'] == 'track') and a['rating_key']: -
- % else: - - % endif -
-
-
${a['transcode_progress']}%
-
${a['progress_percent']}%
-
-
- -
- -% endfor - -% else: -
Nothing is currently being watched.

-% endif -% else: -
There was an error communicating with your Plex Server. Please check your settings. -

-% endif