Fix indentation in websearch.py

This commit is contained in:
Victor Giers
2025-11-30 14:57:31 +01:00
parent 0f6cb8fb5d
commit 0d7acd82e3

View File

@@ -136,10 +136,10 @@ def _is_probably_html_url(url: str) -> bool:
if "." not in path:
return True
ext = path.rsplit(".", 1)[-1]
return ext not in {
"pdf","jpg","jpeg","png","gif","webp","svg","mp4","mp3","mov","avi",
"zip","gz","7z","tar","rar","woff","woff2","ttf","otf"
}
return ext not in {
"pdf","jpg","jpeg","png","gif","webp","svg","mp4","mp3","mov","avi",
"zip","gz","7z","tar","rar","woff","woff2","ttf","otf"
}
except Exception:
return True