# HG changeset patch # User Jeff Hammel # Date 1437436050 25200 # Node ID f2331455c15f6e40bf3935e1686bbaae6ef7b6c2 # Parent 72be63804d93b01367a9285ae53dde2c7a4afb72 stub diff -r 72be63804d93 -r f2331455c15f hls/main.py --- a/hls/main.py Mon Jul 20 16:33:47 2015 -0700 +++ b/hls/main.py Mon Jul 20 16:47:30 2015 -0700 @@ -46,7 +46,7 @@ kwargs.setdefault('formatter_class', argparse.RawTextHelpFormatter) kwargs.setdefault('description', __doc__) argparse.ArgumentParser.__init__(self, **kwargs) - self.add_argument('url', help='URL of manifest' + self.add_argument('url', help='URL of manifest') self.add_argument('--monitor', dest='monitor', type=float, metavar='SLEEP', help="run in monitor mode") @@ -70,6 +70,12 @@ try: while True: + # load the manifest + manifest = m3u8.load(options.url) + + # TODO: make sure each piece of content is loadable + + # loop control if options.monitor: time.sleep(options.monitor) else: