#NEWLINE# def check( self , i ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# url = client . replaceHTMLCodes ( i [ 0 ] ) #NEWLINE# url = url . encode ( 'utf-8' ) #NEWLINE# host = urlparse . urlparse ( url ) . netloc #NEWLINE# host = host . replace ( 'www.' , '' ) . replace ( 'embed.' , '' ) #NEWLINE# host = host . rsplit ( '.' , 1 ) [ 0 ] #NEWLINE# host = host . lower ( ) #NEWLINE# host = client . replaceHTMLCodes ( host ) #NEWLINE# host = host . encode ( 'utf-8' ) #NEWLINE# if ( host in i [ 2 ] ) : #NEWLINE# #INDENT# check = url = resolvers . request ( url ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( host == 'hugefiles' ) : #NEWLINE# #INDENT# check = hugefiles . check ( url ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( host == 'uploadrocket' ) : #NEWLINE# #INDENT# check = uploadrocket . check ( url ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( host == 'openload' ) : #NEWLINE# #INDENT# check = openload . check ( url ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if ( ( check == None ) or ( check == False ) ) : #NEWLINE# #INDENT# raise Exception ( ) #NEWLINE# #UNINDENT# self . sources . append ( { #NEWLINE# #INDENT# 'source' : host , #NEWLINE# 'quality' : i [ 1 ] , #NEWLINE# 'provider' : 'Oneclickwatch' , #NEWLINE# 'url' : url , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass