#NEWLINE# def get_show( self , imdb , tvdb , tvshowtitle , year ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# result = cache . get ( self . dizigold_shows , 72 ) #NEWLINE# tvshowtitle = cleantitle . tv ( tvshowtitle ) #NEWLINE# result = [ i [ 0 ] for i in result if ( self == i [ 1 ] ) ] [ 0 ] #NEWLINE# try : #NEWLINE# #INDENT# url = re . compile ( '//.+?(/.+)' ) . findall ( result ) [ 0 ] #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# url = result #NEWLINE# #UNINDENT# url = client . replaceHTMLCodes ( url ) #NEWLINE# url = url . encode ( 'utf-8' ) #NEWLINE# return url #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return