FIX: Another attempt at a fix for the insecure https requests errors

This commit is contained in:
evilhero 2015-04-17 14:35:05 -04:00
parent 538d9d8e24
commit c3de824271
83 changed files with 8 additions and 6 deletions

0
lib/requests/LICENSE Normal file → Executable file
View File

0
lib/requests/NOTICE Normal file → Executable file
View File

0
lib/requests/README.rst Normal file → Executable file
View File

0
lib/requests/__init__.py Normal file → Executable file
View File

0
lib/requests/adapters.py Normal file → Executable file
View File

0
lib/requests/api.py Normal file → Executable file
View File

0
lib/requests/auth.py Normal file → Executable file
View File

0
lib/requests/cacert.pem Normal file → Executable file
View File

0
lib/requests/certs.py Normal file → Executable file
View File

0
lib/requests/compat.py Normal file → Executable file
View File

0
lib/requests/cookies.py Normal file → Executable file
View File

0
lib/requests/exceptions.py Normal file → Executable file
View File

0
lib/requests/hooks.py Normal file → Executable file
View File

0
lib/requests/models.py Normal file → Executable file
View File

0
lib/requests/packages/__init__.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/__init__.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/big5freq.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/big5prober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/chardistribution.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/charsetgroupprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/charsetprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/codingstatemachine.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/compat.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/constants.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/cp949prober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/escprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/escsm.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/eucjpprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/euckrfreq.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/euckrprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/euctwfreq.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/euctwprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/gb2312freq.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/gb2312prober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/hebrewprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/jisfreq.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/jpcntx.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/langbulgarianmodel.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/langcyrillicmodel.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/langgreekmodel.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/langhebrewmodel.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/langhungarianmodel.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/langthaimodel.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/latin1prober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/mbcharsetprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/mbcsgroupprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/mbcssm.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/sbcharsetprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/sbcsgroupprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/sjisprober.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/universaldetector.py Normal file → Executable file
View File

0
lib/requests/packages/chardet/utf8prober.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/__init__.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/_collections.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/connection.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/connectionpool.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/contrib/__init__.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/contrib/ntlmpool.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/contrib/pyopenssl.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/exceptions.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/fields.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/filepost.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/packages/__init__.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/packages/ordered_dict.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/packages/six.py Normal file → Executable file
View File

View File

0
lib/requests/packages/urllib3/poolmanager.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/request.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/response.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/__init__.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/connection.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/request.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/response.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/retry.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/ssl_.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/timeout.py Normal file → Executable file
View File

0
lib/requests/packages/urllib3/util/url.py Normal file → Executable file
View File

0
lib/requests/sessions.py Normal file → Executable file
View File

0
lib/requests/status_codes.py Normal file → Executable file
View File

0
lib/requests/structures.py Normal file → Executable file
View File

0
lib/requests/utils.py Normal file → Executable file
View File

View File

@ -3,6 +3,7 @@
import os, sys
import re
import lib.feedparser as feedparser
import lib.requests as requests
import ftpsshup
import datetime
import gzip
@ -11,10 +12,6 @@ from StringIO import StringIO
import mylar
from mylar import db, logger, ftpsshup, helpers
try:
import requests
except ImportError:
import lib.requests as requests
def _start_newznab_attr(self, attrsD):
context = self._getContext()
@ -764,8 +761,13 @@ def torsend2client(seriesname, issue, seriesyear, linkit, site):
if not verify:
#32P throws back an insecure warning because it can't validate against the CA. The below suppresses the message just for 32P instead of being displayed.
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
try:
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings()
except ImportError:
from urllib3.exceptions import InsecureRequestWarning
urllib3.disable_warnings()
try:
r = requests.get(url, params=payload, verify=verify, stream=True, headers=headers)