Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag to skip ssl validation #45

Merged
merged 4 commits into from
Sep 19, 2020
Merged

Flag to skip ssl validation #45

merged 4 commits into from
Sep 19, 2020

Conversation

Blatzar
Copy link
Contributor

@Blatzar Blatzar commented Sep 16, 2020

Using verify=False, similar to requests.
Fixes #38

@Blatzar
Copy link
Contributor Author

Blatzar commented Sep 16, 2020

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
Copy link
Owner

iTaybb commented Sep 16, 2020

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

@iTaybb iTaybb merged commit f2c6e6b into iTaybb:master Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ssl certificate
2 participants