#NEWLINE# def get_episode( self , url , imdb , tvdb , title , date , season , episode ) : #NEWLINE# #INDENT# if ( url == None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# url = url . replace ( '/watch-' , '/tv-' ) #NEWLINE# url += ( '/season-%01d-episode-%01d' % ( int ( season ) , int ( episode ) ) ) #NEWLINE# url = client . replaceHTMLCodes ( url ) #NEWLINE# url = url . encode ( 'utf-8' ) #NEWLINE# return url