#NEWLINE# def album_distance( items , album_info , mapping ) : #NEWLINE# #INDENT# 'Returns the album distance calculated by plugins.' #NEWLINE# from beets.autotag.hooks import Distance #NEWLINE# dist = Distance ( ) #NEWLINE# for plugin in find_plugins ( ) : #NEWLINE# #INDENT# dist . update ( plugin . album_distance ( items , album_info , mapping ) ) #NEWLINE# #UNINDENT# return dist