mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Don't prepend to services that have schemes with '//' (#925)
This commit is contained in:
parent
2827a4ef47
commit
cec10e81d3
1 changed files with 4 additions and 1 deletions
|
|
@ -171,7 +171,10 @@ def get_site_alt(link: str) -> str:
|
|||
link = '//'.join(link.split('//')[1:])
|
||||
|
||||
for prefix in SKIP_PREFIX:
|
||||
link = link.replace(prefix, '//')
|
||||
if parsed_alt.scheme:
|
||||
link = link.replace(prefix, '')
|
||||
else:
|
||||
link = link.replace(prefix, '//')
|
||||
break
|
||||
|
||||
return link
|
||||
|
|
|
|||
Loading…
Reference in a new issue