Use separator

main
Bob Mottram 2022-06-02 11:51:55 +01:00
parent e538d0f183
commit 17eafa1844
1 changed files with 2 additions and 2 deletions

View File

@ -1541,8 +1541,8 @@ def _substitute_onion_domains(base_dir: str, content: str) -> str:
for sep in separators: for sep in separators:
if sep not in line: if sep not in line:
continue continue
clearnet = line.split(' ', 1)[0].strip() clearnet = line.split(sep, 1)[0].strip()
onion = line.split(' ', 1)[1].strip().replace('\n', '') onion = line.split(sep, 1)[1].strip().replace('\n', '')
if clearnet and onion: if clearnet and onion:
onion_domains[clearnet] = onion onion_domains[clearnet] = onion
break break