<%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_children_list.html Version: 0.1 Variable names: data [list] data :: Usable parameters == Global keys == results_count Returns the number of search results. results_list Returns a dictionary of search result types. data['results_list'] :: Usable paramaters == media_type keys == movie Returns an array of movie results show Returns an array of show results season Returns an array of season results episode Returns an array of episode results artist Returns an array of artist results album Returns an array of album results track Returns an array of track results data['results_list'][media_type] :: Usable paramaters == Global keys == rating_key Returns the unique identifier for the media item. type Returns the type of media. Either 'movie', 'show', 'season', 'episode', 'artist', 'album', or 'track'. art Returns the location of the item's artwork title Returns the name of the movie, show, episode, artist, album, or track. 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 show, or artist. parent_media_index Returns the index number of the season. media_index Returns the index number of the episode, or track. 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 show, or artist. rating Returns the 5 star rating value for the movie. Between 1 and 5. year Returns the release year of the movie, or show. 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. originally_available_at Returns the air date of the item. DOCUMENTATION :: END % if data != None: <% from plexpy.helpers import page %> % if data['results_count'] > 0: % if 'collection' in data['results_list'] and data['results_list']['collection']:

#### Collections

% for child in data['results_list']['collection']:
- % if _session['user_group'] == 'admin': % endif

  ### ${child['title']}

  ### ${child['min_year']} - ${child['max_year']}

% endfor

% endif % if 'movie' in data['results_list'] and data['results_list']['movie']:

#### Movies

% for child in data['results_list']['movie']:
- % if _session['user_group'] == 'admin': % endif

  ### ${child['title']}

  ### ${child['year']}

% endfor

% endif % if 'show' in data['results_list'] and data['results_list']['show']:

#### TV Shows

% for child in data['results_list']['show']:
- % if _session['user_group'] == 'admin': % endif

  ### ${child['title']}

  ### ${child['year']}

% endfor

% endif % if 'season' in data['results_list'] and data['results_list']['season']:

#### Seasons

% for child in data['results_list']['season']:
- % if _session['user_group'] == 'admin': % endif

  ### ${child['parent_title']}

  ### S${child['media_index']}

% endfor

% endif % if 'episode' in data['results_list'] and data['results_list']['episode']:

#### Episodes

% for child in data['results_list']['episode']:
- % if _session['user_group'] == 'admin': % endif

  ### ${child['grandparent_title']}

  ### ${child['title']}

  ### S${child['parent_media_index']} · E${child['media_index']}

% endfor

% endif % if 'artist' in data['results_list'] and data['results_list']['artist']:

#### Artists

% for child in data['results_list']['artist']:
- % if _session['user_group'] == 'admin': % endif

  ### ${child['title']}

% endfor

% endif % if 'album' in data['results_list'] and data['results_list']['album']:

#### Albums

% for child in data['results_list']['album']:
- % if _session['user_group'] == 'admin': % endif

  ### ${child['parent_title']}

  ### ${child['title']}

% endfor

% endif % if 'track' in data['results_list'] and data['results_list']['track']:

#### Tracks

% for child in data['results_list']['track']:
- Track ${child['media_index']}
  % if _session['user_group'] == 'admin': % endif

  ### ${child['original_title'] or child['grandparent_title']}

  ### ${child['title']}

  ### ${child['parent_title']}

% endfor

% endif % else:
No search results found.
% endif % endif