'Returns the album distance.'

def album_distance(self, items, album_info, mapping):

    dist = Distance()
    if (album_info.data_source == 'Discogs'):
        dist.add('source', self.config['source_weight'].as_number())
    return dist
