'Fetches a release by its Beatport ID and returns an AlbumInfo object
or None if the release is not found.'

def album_for_id(self, release_id):

    self._log.debug(u'Searching    for    release    {0}', release_id)
    match = re.search('(^|beatport\\.com/release/.+/)(\\d+)$', release_id)
    if (not match):
        return None
    release = self.client.get_release(match.group(2))
    album = self._get_album_info(release)
    return album
