diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-06-19 22:27:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 22:27:37 +0000 |
commit | 69759be1132e0bc844f88f31f3466774b7394167 (patch) | |
tree | 4aa114c8ff60111e8143990b923b3cabacb3c68a | |
parent | Removed google, yandex, bing #345 (diff) | |
parent | Fix typo in get_instances.py (diff) | |
download | libredirect-69759be1132e0bc844f88f31f3466774b7394167.zip |
Merge pull request #351 from xykg1tbi4u6c6tj1/update-wikiless-function
Update wikiless function in get_instances.py
-rw-r--r-- | src/instances/get_instances.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index 7fa120c5..7c270843 100644 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -216,12 +216,12 @@ def wikiless(): wikilessList['tor'] = [] wikilessList['i2p'] = [] for item in rJson: - if item.endswith('.onion'): - wikilessList['tor'].append('http://' + item) - elif item.endswith('.i2p'): - wikilessList['i2p'].append('http://' + item) - else: - wikilessList['normal'].append('https://' + item) + if 'url' in item: + wikilessList['normal'].append(item['url']) + if 'onion' in item: + wikilessList['tor'].append(item['onion']) + if 'i2p' in item: + wikilessList['i2p'].append(item['i2p']) mightyList['wikiless'] = wikilessList print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Wikiless') |