import sys import musicbrainz2.webservice as ws import musicbrainz2.model as m def findArtist(name): if len(name) == 0 or name == 'Add an artist': return '''
Please enter an artist
''' q = ws.Query() f = ws.ArtistFilter(name, limit=5) artistResults = ws.Query().getArtists(ws.ArtistFilter(name, limit=5)) if len(artistResults) > 1: return '''We found a few different artists. Which one did you want?