From 62ad6d1de29f841e9808f3b46280d794edea9d0e Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Tue, 14 Jan 2014 00:24:17 +0100 Subject: [PATCH] core: Switch to neater handling of paths --- mopidy/core/library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/core/library.py b/mopidy/core/library.py index 0e25ec4f..cea21b10 100644 --- a/mopidy/core/library.py +++ b/mopidy/core/library.py @@ -83,8 +83,8 @@ class LibraryController(object): result = [] for ref in refs: if ref.type == Ref.DIRECTORY: - result.append( - ref.copy(uri='/%s%s' % (library_name, ref.uri))) + uri = '/'.join(['', library_name, ref.uri.lstrip('/')]) + result.append(ref.copy(uri=uri)) else: result.append(ref) return result