'Returns an AlbumInfo object for a Beatport Release object.'

def _get_album_info(self, release):

    va = (len(release.artists) > 3)
    (artist, artist_id) = self._get_artist(release.artists)
    if va:
        artist = u'Various    Artists'
    tracks = [self._get_track_info(x) for x in release.tracks]
    return AlbumInfo(album=release.name, album_id=release.beatport_id, artist=artist, artist_id=artist_id, tracks=tracks, albumtype=release.category, va=va, year=release.release_date.year, month=release.release_date.month, day=release.release_date.day, label=release.label_name, catalognum=release.catalog_number, media=u'Digital', data_source=u'Beatport', data_url=release.url)
