Mercurial > hg > hls
changeset 2:ed7e9734a088
moar stubbin
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 20 Jul 2015 13:23:58 -0700 |
parents | 9f80b2c05268 |
children | 72be63804d93 |
files | README.txt hls/main.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/README.txt Mon Jul 20 13:04:20 2015 -0700 +++ b/README.txt Mon Jul 20 13:23:58 2015 -0700 @@ -19,3 +19,4 @@ - https://en.wikipedia.org/wiki/M3U - https://pypi.python.org/pypi/m3u8 - https://github.com/billyshambrook/pyhls/ +- http://tools.ietf.org/html/draft-pantos-http-live-streaming-08
--- a/hls/main.py Mon Jul 20 13:04:20 2015 -0700 +++ b/hls/main.py Mon Jul 20 13:23:58 2015 -0700 @@ -7,6 +7,7 @@ # imports import argparse +import m3u8 import os import subprocess import sys @@ -45,6 +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('--monitor', dest='monitor', type=float, metavar='SLEEP', help="run in monitor mode") @@ -77,5 +79,3 @@ if __name__ == '__main__': main() - -