From f55390ee18bf21e8a3e77abc877557ce6f28a587 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Wed, 5 May 2010 19:26:50 +0200 Subject: [PATCH] Use path_to_uri to join dirs --- mopidy/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mopidy/utils.py b/mopidy/utils.py index 700b7375..c0caf2fe 100644 --- a/mopidy/utils.py +++ b/mopidy/utils.py @@ -213,11 +213,11 @@ def _convert_mpd_data(data, tracks, music_dir): track_kwargs['name'] = data['title'] if data['file'][0] == '/': - path = os.path.join(music_dir, data['file'][1:]) + path = data['file'][1:] else: - path = os.path.join(music_dir, data['file']) + path = data['file'] - track_kwargs['uri'] = path_to_uri(path) + track_kwargs['uri'] = path_to_uri(music_dir, path) track_kwargs['length'] = int(data.get('time', 0)) * 1000 track = Track(**track_kwargs)