#NEWLINE# def get( self , imdb , tmdb , tvdb , tvrage , season , episode , alter , title , date ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# alt = False #NEWLINE# if ( alter == '1' ) : #NEWLINE# #INDENT# alt = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if any ( ( ( x in alter ) for x in [ 'Documentary' , 'Reality' , 'Game Show' , 'Talk Show' ] ) ) : #NEWLINE# #INDENT# alt = True #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( season ) > 3 ) : #NEWLINE# #INDENT# alt = True #NEWLINE# #UNINDENT# block = [ '73141' ] #NEWLINE# if ( tvdb in block ) : #NEWLINE# #INDENT# alt = True #NEWLINE# #UNINDENT# if ( alt == False ) : #NEWLINE# #INDENT# raise Exception ( ) #NEWLINE# #UNINDENT# if ( tvrage == '0' ) : #NEWLINE# #INDENT# tvrage = cache . get ( episode . tvrageId , 8640 , imdb , tmdb , tvdb ) #NEWLINE# #UNINDENT# if ( tvrage == None ) : #NEWLINE# #INDENT# raise Exception ( ) #NEWLINE# #UNINDENT# result = cache . get ( self . tvrageEpisode , 8640 , tvrage , title , date , season , episode ) #NEWLINE# if ( result == None ) : #NEWLINE# #INDENT# raise Exception ( ) #NEWLINE# #UNINDENT# return ( result [ 0 ] , result [ 1 ] ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return ( season , episode )