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
1 changed files with 6 additions and 6 deletions

View File

@ -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')