<%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 == children_type Returns the type of children in the array. children_count Returns the number of episodes in the array. children_list Returns an array of episodes. data['children_list'] :: Usable paramaters == Global keys == rating_key Returns the unique identifier for the media item. media_index Returns the episode number. title Returns the name of the episode. thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. parent_thumb Returns the location of the item's parent thumbnail. Use with pms_image_proxy. DOCUMENTATION :: END % if data != None: % if data['children_count'] > 0:

% for child in data['children_list']: % if child['rating_key']: % if data['children_type'] == 'track':
- % else:
- % endif %if data['children_type'] == 'season':
  % if child['thumb']:
  % else:
  % endif
  Season ${child['media_index']}
  % if _session['user_group'] == 'admin': % endif
  % elif data['children_type'] == 'episode':
  Episode ${child['media_index']}
  % if _session['user_group'] == 'admin': % endif

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

  % elif data['children_type'] == 'album':
  % if _session['user_group'] == 'admin': % endif

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

  % elif data['children_type'] == 'track': % if loop.index % 2 == 0:
  ${child['media_index']} ${child['title']}
  % else:
  ${child['media_index']} ${child['title']}
  % endif % endif
% endif % endfor

% endif % endif