#NEWLINE# def get( self , tvshowtitle , year , imdb , tmdb , tvdb , tvrage , season = None , episode = None , idx = True ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( idx == True ) : #NEWLINE# #INDENT# if ( episode == None ) : #NEWLINE# #INDENT# self . list = cache . get ( seasons ( ) . tvdb_list , 1 , tvshowtitle , year , imdb , tmdb , tvdb , tvrage , self . info_lang , season ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . list = cache . get ( seasons ( ) . tvdb_list , 1 , tvshowtitle , year , imdb , tmdb , tvdb , season , self . info_lang , '-1' ) #NEWLINE# num = [ x for ( x , y ) in enumerate ( self . list ) if ( ( y [ 'season' ] == str ( season ) ) and ( y [ 'episode' ] == str ( episode ) ) ) ] [ ( - 1 ) ] #NEWLINE# self . list = [ y for ( x , y ) in enumerate ( self . list ) if ( x >= num ) ] #NEWLINE# #UNINDENT# self . episodeDirectory ( self . list ) #NEWLINE# return self . list #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . list = seasons ( ) . tvdb_list ( tvshowtitle , year , imdb , tmdb , tvdb , tvrage , self . info_lang , '-2' ) #NEWLINE# return self . list #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass