Open
Description
in model.py > Class Segment() > init() for the following line:
self.key = Key(base_uri=base_uri,**key) if key else None
if a segment has "#EXT-X-KEY:METHOD=NONE", it is missing the uri parameter needed for class Key(), its init function:
def __init__(self, method, uri, base_uri, iv=None, keyformat=None, keyformatversions=None):
I believe uri should also be an optional parameter according to this documentation:
URI
The value is a quoted-string containing a URI that specifies how to
obtain the key. This attribute is REQUIRED unless the METHOD is
NONE.
http://tools.ietf.org/html/draft-pantos-http-live-streaming-16#section-4.3.2.4
The fix would be the following code for Key().init() where uri=None is the main different making it optional:
def __init__(self, method, base_uri, uri=None, iv=None, keyformat=None, keyformatversions=None):