<%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. type Returns the type of media. Either 'movie' or 'season'. 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 'type' is 'movie' == year Returns the movie release year. DOCUMENTATION :: END % if data != None:

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

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

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

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

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

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

  % endif
  ${item['added_at']}
  % elif item['type'] == 'album':

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

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

  ${item['added_at']}
  % endif
% endfor

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