diff --git a/ContentDirectory.py b/ContentDirectory.py index 835402d..697afaa 100644 --- a/ContentDirectory.py +++ b/ContentDirectory.py @@ -124,7 +124,7 @@ class ContentDirectoryControl(UPnPPublisher, dict): if BrowseFlag == 'BrowseDirectChildren': ch = self.getchildren(ObjectID)[StartingIndex: StartingIndex + RequestedCount] - filter(lambda x, s = self, d = didl: d.addItem(s[x.id].checkUpdate()) and None, ch) + filter(lambda x, d = didl: d.addItem(x) and None, filter(lambda x, s = self: s[x.id].checkUpdate(), ch)) else: didl.addItem(self[ObjectID]) diff --git a/FSStorage.py b/FSStorage.py index 545e7cd..419157f 100644 --- a/FSStorage.py +++ b/FSStorage.py @@ -39,6 +39,7 @@ class FSObject(object): if x.errno in (errno.ENOENT, errno.ENOTDIR, errno.EPERM, ): # We can't access it anymore, delete it self.cd.delItem(self.id) + return None else: raise x