<%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 %> <%def name="headIncludes()"> <%def name="body()"> % 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 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
% else:

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

% endif <%def name="javascriptIncludes()">
% if data: % if data['type'] == 'movie':
% endif % if data['type'] == 'movie' or data['type'] == 'episode':
% elif data['type'] == 'show':
% endif % if data['type'] == 'season':
% endif % endif