<%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 (if not applicable for media type, blank value will be returned) == Global keys == rating_key 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. content_rating Returns the age rating for the media. summary Returns a brief description of the media plot. grandparent_title Returns the name of the TV show. parent_index Returns the season number of the TV show. index Returns the episode number. parent_thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. writers Returns an array of writers. thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. parent_title Returns the name of the TV show. rating Returns the 5 star rating value for the movie. Between 1 and 5. year Returns the release year of the movie. genres Returns an array of genres. actors Returns an array of actors. directors Returns an array of directors. 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['parent_title']} (${data['title']})

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

# ${data['grandparent_title']} (Season ${data['parent_index']}, 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['content_rating']}

${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']}

Time | User | Platform | IP Address | Title | Started | Paused | Stopped | Duration |
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---

% 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