'Returns a list of AlbumInfo objects for a beatport search query.'

def _get_releases(self, query):

    query = re.sub('\\W+', '    ', query, flags=re.UNICODE)
    query = re.sub('\\b(CD|disc)\\s*\\d+', '', query, flags=re.I)
    albums = [self._get_album_info(x) for x in self.client.search(query)]
    return albums
