Update server.py

This commit is contained in:
Namhyeon Go 2024-02-23 18:41:25 +09:00 committed by GitHub
parent c435e409ab
commit 6c7de340d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,7 +227,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
score += 2
# check ID with SearchEngine5 strategy
if all(map(search_engine_test, matches)) and librey_apiurl != '':
if librey_apiurl != '' and all(map(search_engine_test, matches)):
score += 1
# make decision
@ -235,7 +235,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
filtered = False
# check an attached images (check images with Not-CAPTCHA strategy)
if not filtered and len(matches) > 0 and truecaptcha_userid != '':
if truecaptcha_userid != '' and not filtered and len(matches) > 0:
def webp_to_png_base64(url):
try:
response = requests.get(url)