Update rimgo function in get_instances.py

This commit is contained in:
30xxa26idroiuzwc 2022-06-16 16:07:37 +00:00 committed by GitHub
parent a1e2b1867d
commit 4b9a358dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,12 +373,12 @@ def rimgo():
rimgoList['tor'] = [] rimgoList['tor'] = []
rimgoList['i2p'] = [] rimgoList['i2p'] = []
for item in rJson: for item in rJson:
if item.endswith('.onion'): if 'url' in item:
rimgoList['tor'].append('http://' + item) rimgoList['normal'].append(item['url'])
elif item.endswith('.i2p'): if 'onion' in item:
rimgoList['i2p'].append('http://' + item) rimgoList['onion'].append(item['onion'])
else: if 'i2p' in item:
rimgoList['normal'].append('https://' + item) rimgoList['i2p'].append(item['i2p'])
mightyList['rimgo'] = rimgoList mightyList['rimgo'] = rimgoList
print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Rimgo') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Rimgo')