def clean_name(self, name): """ Cleans up the formatting of artist/label names. Discogs orders duplicate names by appending a counter to each dupe eg : http://www.discogs.com/search?type=artists&q=goldie&btn=Search Goldie Goldie (1) Goldie (16) """ r = re.compile('\s\(\d+\)') return utils.filterThe(r.sub('', name))
def polishName(self, name): """ TODO """ r = re.compile('\s\(\d+\)') return utils.filterThe(r.sub('', name))