mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2025-02-01 03:46:50 +01:00
Update rimgo function in get_instances.py
This commit is contained in:
parent
a1e2b1867d
commit
4b9a358dd7
@ -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')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user