#NEWLINE# def _hash( oid , id ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# url = ( 'http://vk.com/al_video.php?act=show_inline&al=1&video=%s_%s' % ( oid , id ) ) #NEWLINE# result = client . request ( url ) #NEWLINE# result = result . replace ( "'" , '"' ) . replace ( ' ' , '' ) #NEWLINE# hash = re . compile ( '"hash2":"(.+?)"' ) . findall ( result ) #NEWLINE# hash += re . compile ( '"hash":"(.+?)"' ) . findall ( result ) #NEWLINE# hash = hash [ 0 ] #NEWLINE# return hash #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return