<%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: recently_added.html Version: 0.1 Variable names: data [array] data[array_index] :: Usable parameters == Global keys == rating_key Returns the unique identifier for the media item. media_type Returns the media type of media. Either 'movie' or 'season' or 'album'. thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. added_at Returns the time when the media was added to the library. title Returns the name of the movie or season. parent_title Returns the name of the TV Show a season belongs too. == Only if 'media_type' is 'movie' == year Returns the movie release year. DOCUMENTATION :: END % if data != None:

% for item in data:
- % if item['media_type'] == 'season' or item['media_type'] == 'movie':
  % if item['media_type'] == 'season':

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

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

  % elif item['media_type'] == 'movie':

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

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

  % endif
  % elif item['media_type'] == 'album':

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

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

  % endif
% endfor

% else:
There was an error communicating with your Plex Server. Please check your settings.
% endif