<%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: library.html Version: 0.1 Variable names: data [list] data :: Usable parameters section_id Returns the library id of the library. section_name Returns the name of the library. section_type Returns the type of the library. library_thumb Returns the thumbnail for the library. custom_thumb Returns the custom thumbnail for the library. library_art Returns the artwork for the library. count Returns the item count for the library. parent_count Returns the parent item count for the library. child_count Returns the child item count for the library. do_notify Returns bool value for whether to send notifications for the library. keep_history Returns bool value for whether to keep history for the library. DOCUMENTATION :: END <%inherit file="base.html"/> <%def name="headIncludes()"> <%def name="body()"> % if data: <% from plexpy.common import LIVE_TV_SECTION_ID from plexpy.helpers import page %>
% if data['library_art']:
% if _session['user_group'] == 'admin': % endif % endif
% if data['library_thumb'].startswith('http'):
% if not data['is_active']: % endif
% else:
% if not data['is_active']: % endif
% endif
${data['section_name']} % if _session['user_group'] == 'admin': % endif
Global Stats
Loading data...
User Stats
Loading data...
Recently Played
Loading data...
% if data['section_id'] != LIVE_TV_SECTION_ID:
Recently Added
Loading data...
% endif
History for ${data['section_name']}
% if _session['user_group'] == 'admin':
% endif
Direct Play Direct Stream Transcode

Delete | Date | User | IP Address | Platform | Product | Player | Title | Started | Paused | Stopped | Duration |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---

% if _session['user_group'] == 'admin':
% if config['get_file_sizes'] and data['section_id'] in config['get_file_sizes_hold']['section_ids']:
Tautulli is calculating the file sizes for the library's media info. This could take a few minutes depending on the size of your library.
You may leave this page and check back later.
% endif
Media Info for ${data['section_name']}
% if _session['user_group'] == 'admin':
% if config['get_file_sizes'] and data['section_id'] in config['get_file_sizes_hold']['section_ids']:
% else:
% endif
% endif

Added At | Title | Container | Bitrate | Video Codec | Video Resolution | Video Framerate | Audio Codec | Audio Channels | File Size | Last Played | Total Plays
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---

% endif % if data['section_type'] != 'photo':
Collections for ${data['section_name']}
% if _session['user_group'] == 'admin':
% endif

Collection Title | Collection Mode | Collection Sort | Collection Items
--- | --- | --- | ---

% endif
Playlists for ${data['section_name']}
% if _session['user_group'] == 'admin': <% playlist_sub_media_type = {'movie': 'video', 'show': 'video', 'artist': 'audio', 'photo': 'photo'} %>
% endif

Playlist Title | Playlist Items | Playlist Duration
--- | --- | ---

% if _session['user_group'] == 'admin':
Metadata Exports for ${data['section_name']}

Exported At | Media Type | Rating Key | Filename | File Format | Metadata Level | Media Info Level | Custom Fields | File Size | Download | Delete
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---

% endif
% else:
Error retrieving library information. Please see the logs for more details.
% endif <%def name="modalIncludes()">

#### Confirm Delete

Are you REALLY sure you want to delete history item(s)?

This is permanent and cannot be undone!

<%def name="javascriptIncludes()">
% if data: <% from plexpy.common import LIVE_TV_SECTION_ID %> <% history_user_id = '' if _session['user_group'] == 'admin' else _session['user_id'] %>
% if data['section_type'] != 'photo':
% endif
% if _session['user_group'] == 'admin':
% endif % endif