#NEWLINE# def list_subtitles( self , video , languages ) : #NEWLINE# #INDENT# if isinstance ( video , Episode ) : #NEWLINE# #INDENT# return [ s for l in languages for s in self . query ( l , video . series , season = video . season , episode = video . episode , year = video . year ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( video , Movie ) : #NEWLINE# #INDENT# return [ s for l in languages for s in self . query ( s , video . title , year = video . year ) ]