diff --git a/data/interfaces/default/base.html b/data/interfaces/default/base.html index f56d60fa..50961ef4 100644 --- a/data/interfaces/default/base.html +++ b/data/interfaces/default/base.html @@ -1,102 +1,154 @@ <% - import plexpy - from plexpy import version +import plexpy +from plexpy import version %> - - - PlexPy - ${title} - - - - - - - - - ${next.headIncludes()} - + + + PlexPy - ${title} + + + + + + + + + ${next.headIncludes()} + - - - - - - - + + + + + + + -
-
- % if plexpy.CONFIG.CHECK_GITHUB and not plexpy.CURRENT_VERSION: -
- You're running an unknown version of PlexPy. Update or - Close -
- % elif plexpy.CONFIG.CHECK_GITHUB and plexpy.CURRENT_VERSION != plexpy.LATEST_VERSION and plexpy.COMMITS_BEHIND > 0 and plexpy.INSTALL_TYPE != 'win': -
- A newer version is available. You're ${plexpy.COMMITS_BEHIND} commits behind. Update or Close -
- % endif -
@@ -48,7 +50,8 @@
-
Looking for new items...

+
Looking for new items...
+
@@ -127,6 +130,7 @@ getHomeStats(30); + diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index 9883ad76..7a9f560d 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -1,253 +1,304 @@ +<%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: info.html +Version: 0.1 +Variable names: data [list] + +data :: Usable parameters + +== Global keys == +ratingKey Returns the unique identifier for the media item. +type Returns the type of media. Either 'movie', 'episode' or 'show' or 'season'. +art Returns the location of the item's artwork +title Returns the name of the episode, show, season or movie. +duration Returns the standard runtime of the media. +contentRating Returns the age rating for the media. +summary Returns a brief description of the media plot. + +== Only if 'type' is 'episode' == +grandparentTitle Returns the name of the TV show. +parentIndex Returns the season number of the TV show. +index Returns the episode number. +parentThumb Returns the location of the item's thumbnail. Use with pms_image_proxy. +writers Returns an array of writers. + +== Only if 'type' is 'movie' or 'season' or 'show' == +thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. + +== Only if 'type' is 'season' == +parentTitle Returns the name of the TV show. + +== Only if 'type' is 'movie' == +rating Returns the 5 star rating value for the movie. Between 1 and 5. +year Returns the release year of the movie. + +== Only if 'type' is 'movie' or 'show' == +genres Returns an array of genres. +actors Returns an array of actors. + +== Only if 'type' is 'episode' or 'movie' == +directors Returns an array of directors. + +== Only if 'type' is 'show' or 'season' == +studio Returns the name of the studio. + +DOCUMENTATION :: END + + <%inherit file="base.html"/> <%! - from plexpy import helpers +from plexpy import helpers %> <%def name="headIncludes()"> - + <%def name="body()"> - % if metadata: -
-
- -
-
- - -
- -
-
-
- -
- -
- % if metadata['type'] == 'episode': - - % else: - - % endif -
-
-
- % if metadata['type'] == 'movie': -

${metadata['title']} (${metadata['year']})

- % elif metadata['type'] == 'season': -

${metadata['parentTitle']} (${metadata['title']})

- % elif metadata['type'] == 'episode': -

${metadata['grandparentTitle']} (Season ${metadata['parentIndex']}, Episode ${metadata['index']}) "${metadata['title']}"

- % else: -

${metadata['title']}

- % endif -
- % if metadata['type'] == 'movie': -
- % endif -
-
- % if metadata['type'] == 'episode' or metadata['type'] == 'movie': - % if metadata['directors']: - Directed by ${metadata['directors'][0]} - % else: - Directed by unknown - % endif - % elif metadata['type'] == 'show' or metadata['type'] == 'season': - Studio ${metadata['studio']} - % endif -
-
- Runtime ${metadata['duration']} mins -
-
- Rated ${metadata['contentRating']} -
-
-
-

${metadata['summary']}

-
-
-
- % if metadata['type'] == 'episode': -
-
-
-
Written by
-
    - % for writer in metadata['writers']: - % if loop.index < 5: -
  • - ${writer} -
  • - % endif - % endfor -
-
-
-
- % elif metadata['type'] == 'movie' or metadata['type'] == 'show': -
-
-
-
Genres
-
    - % for genre in metadata['genres']: - % if loop.index < 5: -
  • - ${genre} -
  • - % endif - % endfor -
-
-
-
-
Starring
-
    - % for actor in metadata['actors']: - % if loop.index < 5: -
  • - ${actor} -
  • - % endif - % endfor -
-
-
-
-
- % elif metadata['type'] == 'season': -
+% if data: +
+
+
+
+
+
+
+
+
+
+ % if data['type'] == 'episode': + + % else: + % endif
+
+
+ % if data['type'] == 'movie': +

${data['title']} (${data['year']})

+ % elif data['type'] == 'season': +

${data['parentTitle']} (${data['title']})

+ % elif data['type'] == 'episode': +

${data['grandparentTitle']} (Season ${data['parentIndex']}, Episode + ${data['index']}) "${data['title']}"

+ % else: +

${data['title']}

+ % endif +
+ % if data['type'] == 'movie': +
+ % endif +
+
+ % if data['type'] == 'episode' or data['type'] == 'movie': + % if data['directors']: + Directed by ${data['directors'][0]} + % else: + Directed by unknown + % endif + % elif data['type'] == 'show' or data['type'] == 'season': + Studio ${data['studio']} + % endif +
+
+ Runtime ${data['duration']} mins +
+
+ Rated ${data['contentRating']} +
+
+
+

${data['summary']}

+
+
+ % if data['type'] == 'episode': +
+
+
+
Written by
+
    + % for writer in data['writers']: + % if loop.index < 5: +
  • + ${writer} +
  • + % endif + % endfor +
+
+
+
+ % elif data['type'] == 'movie' or data['type'] == 'show': +
+
+
+
Genres
+
    + % for genre in data['genres']: + % if loop.index < 5: +
  • + ${genre} +
  • + % endif + % endfor +
+
+
+
+
Starring
+
    + % for actor in data['actors']: + % if loop.index < 5: +
  • + ${actor} +
  • + % endif + % endfor +
+
+
+
+
+ % elif data['type'] == 'season': +
+ % endif
- -
-
- -
-
-
-
-
- % if metadata['type'] == 'movie' or metadata['type'] == 'episode' or metadata['type'] == 'show': -
-
-

Watch history for ${metadata['title']}

-
-
- - - - - - - - - - - - - - - - - - - - -
ID Time User Platform IP Address Title Started Paused Stopped Duration Completed RatingKey
- - % elif metadata['type'] == 'season': -
-
-

Episode list for ${metadata['title']}

-
-
-
-
- % endif -
- % else: -
-
-
-
-

Error retrieving item metadata. This media may not be available in the Plex Media Server database anymore.

-
+
+
+
+
+
+
+ % if data['type'] == 'movie' or data['type'] == 'episode' or data['type'] == 'show': +
+
+

Watch history for ${data['title']}

+
+
+ + + + + + + + + + + + + + + + + + + + +
ID Time User Platform IP Address Title Started Paused Stopped Duration Completed RatingKey
+ + % elif data['type'] == 'season': +
+
+

Episode list for ${data['title']}

+
+
+
+
+ % endif
- % endif +
+
+% else: +
+
+
+
+

Error retrieving item data. This media may not be available in the Plex Media Server database + anymore.

+
+
+
+% endif <%def name="javascriptIncludes()"> - - - - + + + + - % if metadata: - % if metadata['type'] == 'movie': - - % endif - % if metadata['type'] == 'movie' or metadata['type'] == 'episode': - - +% endif +% if data['type'] == 'movie' or data['type'] == 'episode': + + - % elif metadata['type'] == 'show': - - - % endif - % if metadata['type'] == 'season': - - % endif - % endif + // Hide the title column + history_table.column(5).visible(false); + }); + + +% elif data['type'] == 'show': + + +% endif +% if data['type'] == 'season': + +% endif +% endif diff --git a/data/interfaces/default/info_episode_list.html b/data/interfaces/default/info_episode_list.html index eb24ed16..7089b311 100644 --- a/data/interfaces/default/info_episode_list.html +++ b/data/interfaces/default/info_episode_list.html @@ -1,8 +1,34 @@ -% if episode_list != None: -% if episode_list['episode_count'] > 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: info_episode_list.html +Version: 0.1 +Variable names: data [list] + +data :: Usable parameters + +== Global keys == +episode_count Returns the number of episodes in the array. +episode_list Returns an array of episodes. + +data['episode_list'] :: Usable paramaters + +== Global keys == +ratingKey Returns the unique identifier for the media item. +thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. +title Returns the name of the episode. +index Returns the episode number. + +DOCUMENTATION :: END + + +% if data != None: +% if data['episode_count'] > 0:
+ + % endfor + +
% else: -
There was an error communicating with your Plex Server. Please check your settings.

+
There was an error communicating with your Plex Server. Please check your settings. +

% endif \ No newline at end of file diff --git a/data/interfaces/default/shutdown.html b/data/interfaces/default/shutdown.html index 7e670c13..b63ebf55 100644 --- a/data/interfaces/default/shutdown.html +++ b/data/interfaces/default/shutdown.html @@ -1,7 +1,7 @@ <%inherit file="base.html"/> <%def name="headIncludes()"> - + <%def name="body()"> @@ -11,8 +11,8 @@
-

PlexPy is ${message}

-
+

PlexPy is ${message}

+
diff --git a/data/interfaces/default/stream_data.html b/data/interfaces/default/stream_data.html index fd3d899f..8fd39d38 100644 --- a/data/interfaces/default/stream_data.html +++ b/data/interfaces/default/stream_data.html @@ -1,52 +1,90 @@ +<%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: stream_data.html +Version: 0.1 +Variable names: data [list] + +data :: Usable parameters + +== Global keys == +media_type Returns the type of session. Either 'episode' or 'movie'. +title Returns the name of the episode or movie. +user Returns the name of the user. +transcode_video_dec Returns the video transcode decision. Either 'transcode', 'copy' or 'direct play'. +transcode_video_codec Returns the name of the video codec for the stream. +transcode_height Returns the value of the video height for the stream. +transcode_width Returns the value of the video width for the stream. +transcode_audio_dec Returns the audio transcode decision. Either 'transcode', 'copy' or 'direct play'. +transcode_audio_codec Returns the name of the audio codec for the stream. +transcode_audio_channels Returns the number of audio channels for the stream. +container Returns the type of container for the original media. +height Returns the value of the video height for the original media. +bitrate Returns the value of the video bitrate for the original media. +width Returns the value of the video width for the original media. +aspect_ratio Returns the value of the video aspect ratio for the original media. +video_framerate Returns the value of the video framerate for the original media. +video_codec Returns the name of the video codec for the original media. +audio_codec Returns the name of the audio codec for the original media. +audio_channels Returns the number of audio channels for the original media. + +== Only if 'media_type' is 'episode' == +grandparent_title Returns the name of the TV Show. + +DOCUMENTATION :: END + + % if data is not None: -