<%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: update_metadata.html Version: 0.1 Variable names: query [list] query :: Usable parameters == Global keys == query_string Returns the string used for the search query. title Returns the name of the movie, episode, or track. parent_title Returns the name of the album. grandparent_title Returns the name of the show, or artist. media_index Returns the index number of the episode, or track. parent_media_index Returns the index number of the season. year Returns the release year of the movie, or show. media_type Returns the type of media. Either 'movie', 'show', 'season', 'episode', 'artist', 'album', or 'track'. rating_key Returns the unique identifier for the media item. DOCUMENTATION :: END <%inherit file="base.html"/> <%def name="headIncludes()"> <%def name="body()"> % if query:
% if not update:
Tautulli cannot find this item's metadata. Either this media item is not available in the Plex Media Server library or it has been moved.
% endif
Please select the correct match below to update the Tautulli database.
Search Results for ${query['query_string']}
Incorrect search results? Try a different query:
Loading search results...
% else:
Tautulli cannot find this item's metadata. Either this media item is not available in the Plex Media Server library or it has been moved.
% endif <%def name="modalIncludes()">

#### Confirm Update

Are you REALLY sure you want to replace

% if query['media_type'] == 'movie': ${query['title']}
${query['year']} % elif query['media_type'] == 'show': ${query['grandparent_title']} % elif query['media_type'] == 'season': ${query['grandparent_title']}
S${query['parent_media_index']} % elif query['media_type'] == 'episode': ${query['grandparent_title']}
${query['title']}
S${query['parent_media_index']} · E${query['media_index']} % elif query['media_type'] == 'artist': ${query['grandparent_title']} % elif query['media_type'] == 'album': ${query['grandparent_title']}
${query['parent_title']} % elif query['media_type'] == 'track': ${query['grandparent_title']}
${query['title']}
${query['parent_title']} % endif

with

% if query['media_type'] != 'movie':

All items for ${query['grandparent_title']} will also be updated.

% endif

This is permanent and cannot be undone!

<%def name="javascriptIncludes()"> % if query:
% endif