Browse Source

only include childCount if it's non-zero, we can't tell (yet) between

an empty container an one that has been "explored"...

[git-p4: depot-paths = "//depot/": change = 851]
v0.3
John-Mark Gurney 18 years ago
parent
commit
5041928b3e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      DIDLLite.py

+ 4
- 1
DIDLLite.py View File

@@ -252,7 +252,10 @@ class Container(Object, list):

root = Object.toElement(self)

root.attrib['childCount'] = str(self.childCount)
# only include if we have children, it's possible we don't
# have our children yet, and childCount is optional.
if self.childCount:
root.attrib['childCount'] = str(self.childCount)

if self.createClass is not None:
SubElement(root, 'upnp:createclass').text = self.createClass


Loading…
Cancel
Save