diff --git a/src/calibre/srv/library_broker.py b/src/calibre/srv/library_broker.py index 36d56fcccd..455bd5ab27 100644 --- a/src/calibre/srv/library_broker.py +++ b/src/calibre/srv/library_broker.py @@ -116,7 +116,7 @@ class LibraryBroker(object): def allowed_libraries(self, filter_func): with self: allowed_names = filter_func(os.path.basename(l) for l in self.lmap.itervalues()) - return OrderedDict(((lid, path) for lid, path in self.lmap.iteritems() if os.path.basename(path) in allowed_names)) + return OrderedDict(((lid, self.library_map[lid]) for lid, path in self.lmap.iteritems() if os.path.basename(path) in allowed_names)) def __enter__(self): self.lock.acquire()