]> code.delx.au - webdl/blobdiff - grabber.py
Lazy loading plus support for SBS HTTP videos
[webdl] / grabber.py
index 4216220a3af89e20f3372fb87a5c5995c83c57fd..9fa546fdf35d299e238627b0191df7dcaef0e6b1 100755 (executable)
@@ -22,7 +22,7 @@ def choose(options, allow_multi):
                        else:
                                if len(values) == 1:
                                        return values[0]
-               except ValueError, IndexError:
+               except (ValueError, IndexError):
                        print >>sys.stderr, "Invalid input, please try again"
                        pass
 
@@ -32,7 +32,7 @@ def main():
        while True:
                options = {}
                will_download = True
-               for n in node.children:
+               for n in node.get_children():
                        options[n.title] = n
                        if not n.can_download:
                                will_download = False