<%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':

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

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

  ### (Season ${item['parent_index']}, Episode ${item['index']})

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

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

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

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

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