changeset 4:f2331455c15f default tip

stub
author Jeff Hammel <k0scist@gmail.com>
date Mon, 20 Jul 2015 16:47:30 -0700
parents 72be63804d93
children
files hls/main.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: