<%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: user_recently_watched.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. row_id Returns the unique row id for the media item in the database. type Returns the type of media. Either 'movie' or 'episode'. thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. time Returns the last watched time of the media. title Returns the name of the movie or episode. == Only if 'type' is 'episode == parent_title Returns the name of the TV Show a season belongs too. parent_index Returns the season number. index Returns the episode number. == Only if 'type' is 'movie' == year Returns the movie release year. DOCUMENTATION :: END % if data != None:

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

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

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

  ### S${item['parent_index']} · E${item['index']}

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

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

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

  % endif
  % elif item['type'] == 'track':

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

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

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

  % endif
% endfor

% else:
Unable to retrieve data from database. Please check your settings.
% endif