diff options
-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 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') |