#NEWLINE# def vimeo( link ) : #NEWLINE# #INDENT# 'Find vimeo player URL.' #NEWLINE# pattern = 'https?:\\/\\/vimeo\\.com\\/([\\d]+)' #NEWLINE# match = re . match ( pattern , link ) #NEWLINE# if ( not match ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return ( 'https://player.vimeo.com/video/%s' % match . group ( 1 ) )