(uri, timeout=None, headers={}, custom_tags_parser=None, http_client=DefaultHTTPClient(), verify_ssl=True)
Retrieves the content from a given URI and returns a M3U8 object.
    Raises ValueError if invalid content or IOError if request fails.
Retrieves the content from a given URI and returns a M3U8 object.
    Raises ValueError if invalid content or IOError if request fails.
Retrieves the content from a given URI and returns a M3U8 object . Raises ValueError if invalid content or IOError if request fails .
def load(uri, timeout=None, headers={}, custom_tags_parser=None, http_client=DefaultHTTPClient(), verify_ssl=True):
    '''
    Retrieves the content from a given URI and returns a M3U8 object.
    Raises ValueError if invalid content or IOError if request fails.
    '''
    if is_url(uri):
        content, base_uri = http_client.download(uri, timeout, headers, verify_ssl)
        return M3U8(content, base_uri=base_uri, custom_tags_parser=custom_tags_parser)
    else:
        return _load_from_file(uri, custom_tags_parser)
def load ( uri , timeout = None , headers = { } , custom_tags_parser = None , http_client = DefaultHTTPClient ( ) , verify_ssl = True ) : if is_url ( uri ) : content , base_uri = http_client . download ( uri , timeout , headers , verify_ssl ) return M3U8 ( content , base_uri = base_uri , custom_tags_parser = custom_tags_parser ) else : return _load_from_file ( uri , custom_tags_parser )