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 score += 2
# check ID with SearchEngine5 strategy # 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 score += 1
# make decision # make decision
@ -235,7 +235,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
filtered = False filtered = False
# check an attached images (check images with Not-CAPTCHA strategy) # 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): def webp_to_png_base64(url):
try: try:
response = requests.get(url) response = requests.get(url)