'Returns the beatport source weight and the maximum source weight
for albums.'

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

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