iTaybb / pySmartDL

A Smart Download Manager for Python
The Unlicense
198 stars 56 forks source link

Flag to skip ssl validation #45

Closed Blatzar closed 4 years ago

Blatzar commented 4 years ago

Using verify=False, similar to requests. Fixes https://github.com/iTaybb/pySmartDL/issues/38

Blatzar commented 4 years ago

It needs to be noted that

import ssl
from pySmartDL import SmartDL
url = 'https://s5.mp4upload.com:282/d/qcxwdwykz3b4quuoaowbs2ysjdmoptqcyxrvickuj63o3i42pjjtn52f/yavideo.mp4'
# url = 'https://github.com/iTaybb/pySmartDL/blob/master/pySmartDL/pySmartDL.py'

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

obj = SmartDL(url, progress_bar=True, request_args={'context': ctx})
obj.start()

doesn't work

iTaybb commented 4 years ago

Thanks. I'll look into it over the weekend.