mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Strip SKIP_PREFIX for SITE_ALTS only (#452)
Domain prefixes (www, mobile, m) are now striped for site alternatives only.
This commit is contained in:
parent
2dd86fcf97
commit
f18400b1f1
1 changed files with 2 additions and 3 deletions
|
|
@ -78,11 +78,10 @@ def get_site_alt(link: str) -> str:
|
|||
continue
|
||||
|
||||
link = link.replace(site_key, SITE_ALTS[site_key])
|
||||
for prefix in SKIP_PREFIX:
|
||||
link = link.replace(prefix, '//')
|
||||
break
|
||||
|
||||
for prefix in SKIP_PREFIX:
|
||||
link = link.replace(prefix, '//')
|
||||
|
||||
return link
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue