diff --git a/ContentDirectory.py b/ContentDirectory.py index 3a30c9d..91e1e4c 100644 --- a/ContentDirectory.py +++ b/ContentDirectory.py @@ -76,6 +76,9 @@ class ContentDirectoryControl(UPnPPublisher, dict): del self.children[id] # Remove from parent self.children[self[id].parentID].remove(self[id]) + # Remove content + if hasattr(self[id], 'content'): + self.webbase.delEntity(id) del self[id] def getchildren(self, item):