]> code.delx.au - webdl/blobdiff - common.py
Small cleanup
[webdl] / common.py
index 1ce0008aa4c1d2ca3808d8dc883fb5b696e94614..70f9726162cae78c8f890d64163f181211f2f283 100644 (file)
--- a/common.py
+++ b/common.py
@@ -31,8 +31,13 @@ class Node(object):
                self.can_download = False
 
        def get_children(self):
+               if not self.children:
+                       self.fill_children()
                return self.children
 
+       def fill_children(self):
+               pass
+
        def download(self):
                raise NotImplemented