From e1adf8f7b849d01dc217c892af986d8c1875122d Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 7 Apr 2015 12:06:07 +0200 Subject: [PATCH] [fix] piratebay - cloudfare ssl errors --- searx/engines/piratebay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py index 55446b410..adee6c1fd 100644 --- a/searx/engines/piratebay.py +++ b/searx/engines/piratebay.py @@ -42,6 +42,10 @@ def request(query, params): search_type=search_type, pageno=params['pageno'] - 1) + # FIX: SSLError: hostname 'kthepiratebay.se' + # doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com' + params['verify'] = False + return params