removed duplicate line
This commit is contained in:
parent
8dedf0f4b9
commit
ba7cd1c22b
@ -312,7 +312,7 @@ def cleanup_referer(referer: str) -> str:
|
||||
"""
|
||||
m = fullmatch(re_uri_full, referer)
|
||||
if not m:
|
||||
pdebug(f"cleanup_referer: Could not match referer '{referer}'")
|
||||
warning(f"cleanup_referer: Could not match referer '{referer}'")
|
||||
return referer
|
||||
# pdebug(f"cleanup_referer: {referer} - {m.groups()}")
|
||||
protocol = m.groups()[0]
|
||||
@ -326,7 +326,6 @@ def cleanup_referer(referer: str) -> str:
|
||||
if len(domain.split(".")) == 2: # if domain.tld
|
||||
referer = domain.split(".")[0]
|
||||
if not settings["referer_ranking_ignore_subdomain"]: referer = subdomains + referer
|
||||
if not settings["referer_ranking_ignore_subdomain"]: referer = subdomains + referer
|
||||
if not settings["referer_ranking_ignore_protocol"]: referer = protocol + "://" + referer
|
||||
if not settings["referer_ranking_ignore_location"]: referer += location
|
||||
# pdebug(f"cleanup_referer: cleaned up: {referer}")
|
||||
|
Loading…
Reference in New Issue
Block a user