Skip to content

Commit f0b96c3

Browse files
committed
Fix: Turned off ssl verification
Improves response time. (Thanks NeKz)
1 parent ba67714 commit f0b96c3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
import webbrowser
99
import requests
1010
requests.packages.urllib3.util.connection.HAS_IPV6 = False
11+
requests.packages.urllib3.disable_warnings()
1112

1213
class AutoRenderSearch(FlowLauncher):
13-
14+
1415
def format_time(self, time_hundredths):
1516
if time_hundredths is None:
1617
return "Unknown Time"
@@ -49,7 +50,7 @@ def query(self, query):
4950
try:
5051
search_string = query.replace(' ', '+')
5152
url = f'https://autorender.portal2.sr/api/v1/search?q={search_string}'
52-
r = s.get(url)
53+
r = s.get(url, verify=False)
5354

5455
results = r.json()['results']
5556
if results:

0 commit comments

Comments
 (0)