fix lookup of filenames containing non-ascii characters

This commit is contained in:
herrernst 2013-03-24 15:01:09 +01:00
parent c1c5fff01f
commit 5214927d14

View File

@ -146,7 +146,7 @@ def _convert_mpd_data(data, tracks, music_dir):
path = data['file'][1:]
else:
path = data['file']
path = urllib.unquote(path)
path = urllib.unquote(path.encode('ascii')).decode('utf-8')
if artist_kwargs:
artist = Artist(**artist_kwargs)