From 13f7f57b17d945e752fba535affe28aed26dd199 Mon Sep 17 00:00:00 2001 From: "adrian.sampson" Date: Sun, 12 Apr 2009 04:53:02 +0000 Subject: [PATCH] add fixed to work with empty path components --HG-- extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40210 --- beets/player/bpd.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/beets/player/bpd.py b/beets/player/bpd.py index cfc34b277..adbde48aa 100755 --- a/beets/player/bpd.py +++ b/beets/player/bpd.py @@ -859,14 +859,12 @@ class Server(BaseServer): """Adds a track or directory to the playlist, specified by a path. If `send_id`, write each item's id to the client. """ - components = path_to_list(path) + components = path_to_list(path, PATH_PH) if len(components) <= 3: # Add a single track. - it = self.lib.items(*components) - found_an_item = None - for item in it: + for item in self.lib.items(*components): found_an_item = True self.playlist.append(item) if send_id: