urlopen doesn't take HTTPS
BogdanRusu-03 opened this issue · 1 comments
BogdanRusu-03 commented
When I try to open an MPD file from an HTTPS link, urlopen throws the following error:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)>
parse.py:16
I would suggest the following changes in parse.py:
def parse(cls, string_or_url) -> **def parse(cls, string_or_url, verifiySSL=false):**
def load_xmldom(cls, string_or_url) -> def load_xmldom(cls, string_or_url, verifiySSL)
...
mpd_string = urlopen(string_or_url).read() -> requests.get(string_or_url, verify=verifiySSL)
....
onovy commented
not verifying SSL is bad practice. Make your self-signed certificated trusted.