diff --git a/headphones/helpers.py b/headphones/helpers.py index 86a60a10..4c815ad7 100644 --- a/headphones/helpers.py +++ b/headphones/helpers.py @@ -264,6 +264,7 @@ _XLATE_MUSICBRAINZ = { u"‐": "-", # EN DASH (U+2013) } + def _translate(s, dictionary): # type: (basestring,Mapping[basestring,basestring])->basestring return ''.join(dictionary.get(x, x) for x in s) diff --git a/headphones/mb.py b/headphones/mb.py index 951675a2..c087d6b9 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -793,4 +793,3 @@ def getArtistForReleaseGroup(rgid): return False else: return releaseGroup['artist-credit'][0]['artist']['name'] -