parameters: (self, request)
return_statement: return ret
docstring: Request handler for the `getsubtitles` endpoint.
  
  		.. note::
  
  			Not available in *Enigma2 WebInterface API*.
  
  		Args:
  			request (twisted.web.server.Request): HTTP request object
  		Returns:
  			HTTP response with headers
docstring_summary: Request handler for the `getsubtitles` endpoint.
docstring_tokens: Request handler for the getsubtitles endpoint .
function: def P_getsubtitles(self, request):
  		"""
  		Request handler for the `getsubtitles` endpoint.
  
  		.. note::
  
  			Not available in *Enigma2 WebInterface API*.
  
  		Args:
  			request (twisted.web.server.Request): HTTP request object
  		Returns:
  			HTTP response with headers
  		"""
  		service = self.session.nav.getCurrentService()
  		ret = {"subtitlelist": [], "result": False}
  		subtitle = service and service.subtitle()
  		subtitlelist = subtitle and subtitle.getSubtitleList()
  		if subtitlelist:
  			for i in list(range(0, len(subtitlelist))):
  				ret["result"] = True
  				subt = subtitlelist[i]
  				ret["subtitlelist"].append({
  					"type": subt[0],
  					"pid": subt[1],
  					"page_nr": subt[2],
  					"mag_nr": subt[3],
  					"lang": subt[4]
  				})
  		return ret
function_tokens: def P_getsubtitles ( self , request ) : service = self . session . nav . getCurrentService ( ) ret = { "subtitlelist" : [ ] , "result" : False } subtitle = service and service . subtitle ( ) subtitlelist = subtitle and subtitle . getSubtitleList ( ) if subtitlelist : for i in list ( range ( 0 , len ( subtitlelist ) ) ) : ret [ "result" ] = True subt = subtitlelist [ i ] ret [ "subtitlelist" ] . append ( { "type" : subt [ 0 ] , "pid" : subt [ 1 ] , "page_nr" : subt [ 2 ] , "mag_nr" : subt [ 3 ] , "lang" : subt [ 4 ] } ) return ret