don't disable certificate checks anymore

Executables generated with PyInstaller auto-include the root certificate
file and certificate checks now work out-of-the-box.
pull/231/head
Mike Fährmann 6 years ago
parent 166a721c19
commit e25ebc4bff
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -8,7 +8,6 @@
"""Common classes and constants used by extractor modules."""
import os
import re
import time
import netrc
@ -401,21 +400,5 @@ def generate_extractors(extractor_data, symtable, classes):
# Reduce strictness of the expected magic string in cookiejar files.
# (This allows the use of Wget-generated cookiejars without modification)
http.cookiejar.MozillaCookieJar.magic_re = re.compile(
"#( Netscape)? HTTP Cookie File", re.IGNORECASE)
# The first import of requests happens inside this file.
# If we are running on Windows and the from requests expected certificate file
# is missing (which happens in a standalone executable from py2exe), the
# 'verify' option is globally set to False to avoid an exception being thrown
# when attempting to access https:// URLs.
if os.name == "nt":
import os.path
import requests.certs
import requests.packages.urllib3 as ulib3
if not os.path.isfile(requests.certs.where()):
config.set(("verify",), False)
ulib3.disable_warnings(ulib3.exceptions.InsecureRequestWarning)

@ -62,7 +62,7 @@ class LusciousAlbumExtractor(LusciousBase, GalleryExtractor):
test = (
("https://luscious.net/albums/okinami-no-koigokoro_277031/", {
"url": "7e4984a271a1072ac6483e4228a045895aff86f3",
"keyword": "b5cc69b36689e7360876dd1f8ef2395782eb493f",
"keyword": "1b1e8981afa250a0181e31b15ce3cbaa37c00856",
"content": "b3a747a6464509440bd0ff6d1267e6959f8d6ff3",
}),
("https://luscious.net/albums/virgin-killer-sweater_282582/", {

@ -25,7 +25,6 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
"acidimg",
"mangapark",
}

Loading…
Cancel
Save