From 4b9a358dd722d96e509da368f5e0985b2d0a52ca Mon Sep 17 00:00:00 2001 From: 30xxa26idroiuzwc <107637071+30xxa26idroiuzwc@users.noreply.github.com> Date: Thu, 16 Jun 2022 16:07:37 +0000 Subject: Update rimgo function in get_instances.py --- src/instances/get_instances.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/instances') diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index 1fe91e17..428aee12 100644 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -373,12 +373,12 @@ def rimgo(): rimgoList['tor'] = [] rimgoList['i2p'] = [] for item in rJson: - if item.endswith('.onion'): - rimgoList['tor'].append('http://' + item) - elif item.endswith('.i2p'): - rimgoList['i2p'].append('http://' + item) - else: - rimgoList['normal'].append('https://' + item) + if 'url' in item: + rimgoList['normal'].append(item['url']) + if 'onion' in item: + rimgoList['onion'].append(item['onion']) + if 'i2p' in item: + rimgoList['i2p'].append(item['i2p']) mightyList['rimgo'] = rimgoList print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Rimgo') -- cgit 1.4.1